You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { createForm3, RawForm, type Schema } from '@sjsf/form';
21
+
import { createForm, BasicForm, type Schema } from '@sjsf/form';
22
+
import { resolver } from '@sjsf/form/resolvers/basic';
22
23
import { translation } from '@sjsf/form/translations/en';
23
-
import { theme } from '@sjsf/form/basic-theme';
24
-
import { createValidator2 } from "@sjsf/ajv8-validator";
24
+
import { theme } from '@sjsf/basic-theme';
25
+
import { createFormValidator } from "@sjsf/ajv8-validator";
25
26
26
-
const validator = createValidator2();
27
+
const validator = createFormValidator();
27
28
28
29
const schema: Schema = {
29
-
type: 'object',
30
-
properties: {
31
-
name: {
32
-
type: 'string',
33
-
title: 'Name',
34
-
},
35
-
description: {
36
-
type: 'string',
37
-
title: 'Description',
30
+
title: 'Tasks',
31
+
type: 'array',
32
+
items: {
33
+
type: 'object',
34
+
properties: {
35
+
name: {
36
+
type: 'string',
37
+
title: 'Name',
38
+
},
39
+
description: {
40
+
type: 'string',
41
+
title: 'Description',
42
+
},
38
43
},
44
+
required: ["name"]
39
45
},
40
-
required: ["name"]
41
46
}
42
47
43
-
const form = createForm3({
44
-
...theme,
48
+
const form = createForm({
49
+
theme,
45
50
schema,
51
+
resolver
46
52
validator,
47
53
translation,
48
-
onSubmit: console.log,
54
+
onSubmit: console.log
49
55
})
50
56
</script>
51
57
52
-
<RawForm {form} />
58
+
<BasicForm {form} />
53
59
```
54
60
55
61
## License
56
62
57
63
This project includes modifications of code from [react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form), which is licensed under the Apache License, Version 2.0.
58
64
The rest of the project is under the MIT license.
59
65
60
-
See [LICENSE-MIT](packages/form/LICENSE-MIT) and [LICENSE-APACHE](packages/form/LICENSE-APACHE) for details.
66
+
See [LICENSE-MIT](LICENSE) and [LICENSE-APACHE](LICENSE-APACHE) for details.
61
67
62
68
## See also
63
69
64
70
-[Other JSON Schema to Web UI tools](https://json-schema.org/tools?query=&sortBy=name&sortOrder=ascending&groupBy=toolingTypes&licenses=&languages=&drafts=&toolingTypes=schema-to-web-UI)
65
71
-[Converting JSON to table](https://github.com/x0k/json-to-table)
Copy file name to clipboardExpand all lines: packages/flowbite-theme/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# @sjsf/flowbite-theme
2
2
3
-
The [flowbite-svelte](https://github.com/themesberg/flowbite-svelte) based theme for [svelte-jsonschema-form](https://github.com/x0k/svelte-jsonschema-form).
3
+
The [flowbite-svelte](https://github.com/themesberg/flowbite-svelte)(tailwind v3) based theme for [svelte-jsonschema-form](https://github.com/x0k/svelte-jsonschema-form).
@@ -67,4 +69,4 @@ See [LICENSE-MIT](LICENSE) and [LICENSE-APACHE](LICENSE-APACHE) for details.
67
69
68
70
-[Other JSON Schema to Web UI tools](https://json-schema.org/tools?query=&sortBy=name&sortOrder=ascending&groupBy=toolingTypes&licenses=&languages=&drafts=&toolingTypes=schema-to-web-UI)
69
71
-[Converting JSON to table](https://github.com/x0k/json-to-table)
0 commit comments