The daisyUI v5 based theme for svelte-jsonschema-form.
npm install @sjsf/form@next @sjsf/daisyui5-theme@next
- Install daisyUI v5
Install daisyUI as a Tailwind plugin
- Configuration
Register the theme source path by adding a line like this to the app.css
file.
@source "../node_modules/@sjsf/daisyui5-theme/dist";
- Apply theme
<script lang="ts">
import { createForm } from '@sjsf/form';
import { theme } from '@sjsf/daisyui5-theme';
const form = createForm({
theme,
...
})
</script>
MIT