From vercel-labs-json-render-1
Provides pre-built shadcn-svelte component definitions and implementations for json-render. Includes 36 components (Card, Stack, Grid, etc.) for building Svelte web UIs with Tailwind CSS.
How this skill is triggered — by the user, by Claude, or both
Slash command
/vercel-labs-json-render-1:shadcn-svelteThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Pre-built shadcn-svelte component definitions and implementations for json-render. Provides 36 components built on Svelte 5 + Tailwind CSS.
Pre-built shadcn-svelte component definitions and implementations for json-render. Provides 36 components built on Svelte 5 + Tailwind CSS.
| 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 |
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>
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/catalog entry point has no Svelte dependency -- use it for server-side prompt generation$lib/components/ui/)checks for validation (type + message pairs) and validateOn for timingchange/submit/focus/blur; buttons emit press; selects emit change/selectnpx claudepluginhub vercel-labs/json-renderProvides pre-built shadcn/ui component definitions and implementations for json-render. Add standard UI components (Card, Stack, Tabs) to a catalog or build web UIs with Radix UI + Tailwind CSS.
Provides Svelte patterns for web components, libraries (Bits UI, Ark UI, Melt UI), form handling, and third-party UI integrations.
Converts Stitch designs into Svelte 5 / SvelteKit components using runes API, scoped CSS with custom properties, built-in transitions, TypeScript, dark mode, and accessible markup. Use for SvelteKit projects with .svelte files.