We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53e23d2 commit 595ea64Copy full SHA for 595ea64
apps/docs/src/content/docs/_with-flowbite.svelte
@@ -1,5 +1,5 @@
1
<script lang="ts">
2
- import { Form } from "@sjsf/form";
+ import { FormBase, getDefaultFormState } from "@sjsf/form";
3
import { translation } from "@sjsf/form/translations/en";
4
import { theme } from "@sjsf/flowbite-theme";
5
@@ -8,12 +8,12 @@
8
import { schema, uiSchema, initialData } from "./_schema";
9
import { validator } from "./_validator";
10
11
- let value = $state(initialData);
+ let value = $state(getDefaultFormState(validator, schema, initialData));
12
13
const astro = astroTheme();
14
</script>
15
16
-<Form
+<FormBase
17
class="flex flex-col gap-4 mb-4 {astro.darkOrLight}"
18
bind:value
19
{...theme}
0 commit comments