Skip to content
Playground

Basic

The @sjsf/form package comes with a basic theme.

Demo

<script lang="ts">
import { SimpleForm } from "@sjsf/form";
import { theme } from "@sjsf/form/basic-theme";
import { useCustomForm } from "@/components/custom-form";
import { schema, uiSchema } from "./_demo-schema";
const form = useCustomForm({
...theme,
schema,
uiSchema,
});
</script>
<SimpleForm
{form}
novalidate
style="display: flex; flex-direction: column; gap: 1rem;"
/>
<pre>{JSON.stringify(form.value, null, 2)}</pre>