2.0.1 • Published 1 month ago
@sjsf/shadcn4-theme v2.0.1
@sjsf/shadcn4-theme
The shadcn-svelte based theme for svelte-jsonschema-form.
Installation
npm install @sjsf/form @sjsf/shadcn4-theme
Usage
Install shadcn-svelte
Configuration
Register the theme source path by adding the following line to the
app.css
file:.@source "../node_modules/@sjsf/shadcn4-theme/dist";
Apply theme
<script lang="ts"> import { createForm } from '@sjsf/form'; import { theme, setThemeContext } from '@sjsf/shadcn4-theme'; import * as components from '@sjsf/shadcn4-theme/new-york' const form = createForm({ theme, ... }) setThemeContext({ components }) </script>
License
MIT
2.0.1
1 month ago
2.0.0
1 month ago
2.0.0-next.15
2 months ago
2.0.0-next.14
2 months ago
2.0.0-next.13
2 months ago