Skip to content

Commit 595ea64

Browse files
committed
[docs] Fix flowbite demo
1 parent 53e23d2 commit 595ea64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/docs/src/content/docs/_with-flowbite.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { Form } from "@sjsf/form";
2+
import { FormBase, getDefaultFormState } from "@sjsf/form";
33
import { translation } from "@sjsf/form/translations/en";
44
import { theme } from "@sjsf/flowbite-theme";
55
@@ -8,12 +8,12 @@
88
import { schema, uiSchema, initialData } from "./_schema";
99
import { validator } from "./_validator";
1010
11-
let value = $state(initialData);
11+
let value = $state(getDefaultFormState(validator, schema, initialData));
1212
1313
const astro = astroTheme();
1414
</script>
1515

16-
<Form
16+
<FormBase
1717
class="flex flex-col gap-4 mb-4 {astro.darkOrLight}"
1818
bind:value
1919
{...theme}

0 commit comments

Comments
 (0)