2.0.1 • Published 5 months 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-themeUsage
Install shadcn-svelte
Configuration
Register the theme source path by adding the following line to the
app.cssfile:.@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
5 months ago
2.0.0
5 months ago
2.0.0-next.15
5 months ago
2.0.0-next.14
6 months ago
2.0.0-next.13
6 months ago