@chobantonov/jsonforms-svelte-flowbite
v1.0.1
Published
Flowbite-styled JSONForms Svelte 5 components
Readme
@chobantonov/jsonforms-svelte-flowbite
Flowbite-styled JSONForms components for Svelte 5, built with Flowbite Svelte.
Installation
npm install @chobantonov/jsonforms-svelte-flowbite flowbite-svelte
# or
pnpm add @chobantonov/jsonforms-svelte-flowbite flowbite-svelteNote: This package requires both flowbite-svelte and Tailwind CSS to be installed and configured in your project.
Setup
1. Install Tailwind CSS
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p2. Configure Tailwind
Update your tailwind.config.js:
export default {
content: [
'./src/**/*.{html,js,svelte,ts}',
'./node_modules/flowbite-svelte/dist'
'./node_modules/flowbite-svelte-icons/dist'
'./node_modules/@chobantonov/jsonforms-svelte/dist'
'./node_modules/@chobantonov/jsonforms-svelte-flowbite/dist'
],
theme: {
extend: {}
},
plugins: [
require('flowbite/plugin')
]
}3. Add Tailwind directives
Create or update your app.css:
@tailwind base;
@tailwind components;
@tailwind utilities;Features
- Built with Flowbite Svelte components
- Svelte 5 runes (
$state,$props,$bindable,$derived) - TypeScript support
- JSONForms renderer pattern
- Full form validation with error display
- Accessible components (via Flowbite)
- Responsive design
- Dark mode ready (with Flowbite)
Dependencies
This package depends on:
@chobantonov/jsonforms-svelteflowbite-svelte(UI components)svelte5.x (peer dependency)
License
MIT
