
Shadcn Svelte
- 745 installs
- 15.8k repo stars
- Updated July 8, 2026
- vercel-labs/json-render
The shadcn-svelte skill documents @json-render/shadcn-svelte, providing 36 pre-built shadcn-svelte components for json-render Svelte apps on Svelte 5 and Tailwind CSS.
About
The shadcn-svelte skill documents @json-render/shadcn-svelte, providing 36 pre-built shadcn-svelte components for json-render Svelte apps on Svelte 5 and Tailwind CSS. Two entry points split server-safe catalog schemas at /catalog from Svelte implementations in the main package. Usage explicitly picks needed definitions rather than spreading all components, pairing shadcnComponentDefinitions in defineCatalog with matching shadcnComponents in defineRegistry. Renderer setup wraps JsonUIProvider and Renderer with spec and registry props. Component families include layout Card Stack Grid, navigation Tabs Accordion, forms Input Select, and feedback Alert Dialog. Use when generating JSON specs for Svelte web UIs with shadcn-svelte styling.
- 36 shadcn-svelte components for json-render Svelte 5.
- Separate catalog schemas safe for server bundling.
- Explicit component picking instead of spreading all definitions.
- defineCatalog plus defineRegistry pairing pattern.
- JsonUIProvider and Renderer integration for spec-driven UI.
Shadcn Svelte by the numbers
- 745 all-time installs (skills.sh)
- +27 installs in the week ending Jul 27, 2026 (Skillselion tracking)
- Ranked #459 of 2,277 Frontend Development skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
shadcn-svelte capabilities & compatibility
- Capabilities
- 36 shadcn svelte components for json render svel · separate catalog schemas safe for server bundlin · explicit component picking instead of spreading · definecatalog plus defineregistry pairing patter
- Use cases
- documentation
npx skills add https://github.com/vercel-labs/json-render --skill shadcn-svelteAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 745 |
|---|---|
| repo stars | ★ 15.8k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 8, 2026 |
| Repository | vercel-labs/json-render ↗ |
How do I apply shadcn-svelte using the workflow in its SKILL.md?
Add shadcn-svelte component catalogs and registries to json-render Svelte apps via @json-render/shadcn-svelte.
Who is it for?
Developers following the shadcn-svelte skill for the tasks it documents.
Skip if: Tasks outside the shadcn-svelte scope described in SKILL.md.
When should I use this skill?
User mentions shadcn-svelte or related triggers from the skill description.
What you get
Working shadcn-svelte setup aligned with the documented patterns and constraints.
- component catalog definitions
- shadcn-svelte UI implementations
By the numbers
- Provides 36 shadcn-svelte components built on Svelte 5 and Tailwind CSS
- Two entry points: catalog schemas and client Svelte implementations
Files
@json-render/shadcn-svelte
Pre-built shadcn-svelte component definitions and implementations for json-render. Provides 36 components built on Svelte 5 + Tailwind CSS.
Two Entry Points
| Entry Point | Exports | Use For |
|---|---|---|
@json-render/shadcn-svelte/catalog | shadcnComponentDefinitions | Catalog schemas (no Svelte dependency, safe for server) |
@json-render/shadcn-svelte | shadcnComponents, shadcnComponentDefinitions | Svelte implementations + catalog schemas |
Usage Pattern
Pick the components you need from the standard definitions. Do not spread all definitions -- explicitly select what your app uses:
import { defineCatalog } from "@json-render/core";
import { schema } from "@json-render/svelte/schema";
import { shadcnComponentDefinitions } from "@json-render/shadcn-svelte/catalog";
import { defineRegistry } from "@json-render/svelte";
import { shadcnComponents } from "@json-render/shadcn-svelte";
// Catalog: pick definitions
const catalog = defineCatalog(schema, {
components: {
Card: shadcnComponentDefinitions.Card,
Stack: shadcnComponentDefinitions.Stack,
Heading: shadcnComponentDefinitions.Heading,
Button: shadcnComponentDefinitions.Button,
Input: shadcnComponentDefinitions.Input,
},
actions: {},
});
// Registry: pick matching implementations
const { registry } = defineRegistry(catalog, {
components: {
Card: shadcnComponents.Card,
Stack: shadcnComponents.Stack,
Heading: shadcnComponents.Heading,
Button: shadcnComponents.Button,
Input: shadcnComponents.Input,
},
});Then render in your Svelte component:
<script lang="ts">
import { Renderer, JsonUIProvider } from "@json-render/svelte";
export let spec;
export let registry;
</script>
<JsonUIProvider initialState={spec?.state ?? {}}>
<Renderer {spec} {registry} />
</JsonUIProvider>Available Components
Layout
- Card - Container with optional title, description, maxWidth, centered
- Stack - Flex container with direction, gap, align, justify
- Grid - Grid layout with columns (number) and gap
- Separator - Visual divider with orientation
Navigation
- Tabs - Tabbed navigation with tabs array, defaultValue, value
- Accordion - Collapsible sections with items array and type (single/multiple)
- Collapsible - Single collapsible section with title
- Pagination - Page navigation with totalPages and page
Overlay
- Dialog - Modal dialog with title, description, openPath
- Drawer - Bottom drawer with title, description, openPath
- Tooltip - Hover tooltip with content and text
- Popover - Click-triggered popover with trigger and content
- DropdownMenu - Dropdown with label and items array
Content
- Heading - Heading text with level (h1-h4)
- Text - Paragraph with variant (body, caption, muted, lead, code)
- Image - Image with alt, width, height
- Avatar - User avatar with src, name, size
- Badge - Status badge with text and variant (default, secondary, destructive, outline)
- Alert - Alert banner with title, message, type (success, warning, info, error)
- Carousel - Scrollable carousel with items array
- Table - Data table with columns (string[]) and rows (string[][])
Feedback
- Progress - Progress bar with value, max, label
- Skeleton - Loading placeholder with width, height, rounded
- Spinner - Loading spinner with size and label
Input
- Button - Button with label, variant (primary, secondary, danger), disabled
- Link - Anchor link with label and href
- Input - Text input with label, name, type, placeholder, value, checks
- Textarea - Multi-line input with label, name, placeholder, rows, value, checks
- Select - Dropdown select with label, name, options (string[]), value, checks
- Checkbox - Checkbox with label, name, checked, checks, validateOn
- Radio - Radio group with label, name, options (string[]), value, checks, validateOn
- Switch - Toggle switch with label, name, checked, checks, validateOn
- Slider - Range slider with label, min, max, step, value
- Toggle - Toggle button with label, pressed, variant
- ToggleGroup - Group of toggles with items, type, value
- ButtonGroup - Button group with buttons array and selected
Validation Timing (validateOn)
All form components support validateOn to control when validation runs:
"change"-- validate on every input change (default for Select, Checkbox, Radio, Switch)"blur"-- validate when field loses focus (default for Input, Textarea)"submit"-- validate only on form submission
Important Notes
- The
/catalogentry point has no Svelte dependency -- use it for server-side prompt generation - Components use Tailwind CSS classes -- your app must have Tailwind configured
- Component implementations use bundled shadcn-svelte primitives (not your app's
$lib/components/ui/) - All form inputs support
checksfor validation (type + message pairs) andvalidateOnfor timing - Events: inputs emit
change/submit/focus/blur; buttons emitpress; selects emitchange/select
Related skills
FAQ
What does shadcn-svelte do?
Add shadcn-svelte component catalogs and registries to json-render Svelte apps via @json-render/shadcn-svelte.
When should I use shadcn-svelte?
Invoke when Add shadcn-svelte component catalogs and registries to json-render Svelte apps via @json-render/shadcn-svelte.
Is shadcn-svelte safe to install?
Review the Security Audits panel on this page before installing in production.