
Json Render Shadcn
Add shadcn/Radix + Tailwind UI blocks to a json-render catalog and registry without importing all 36 components blindly.
Install
npx skills add https://github.com/vercel-labs/json-render --skill json-render-shadcnWhat is this skill?
- 36 pre-built shadcn/ui components on Radix UI + Tailwind CSS.
- Two entry points: `@json-render/shadcn/catalog` (definitions, no React) and `@json-render/shadcn` (React implementations
- Explicit component pick lists for catalog and registry—do not spread entire definition sets.
- Pairs defineCatalog(schema) with defineRegistry and matched shadcnComponents keys.
- Uses `@json-render/react/schema` with shadcnComponentDefinitions and shadcnComponents.
Adoption & trust: 153 installs on skills.sh; 15k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Frontend Designanthropics/skills
Vercel React Best Practicesvercel-labs/agent-skills
Remotion Best Practicesremotion-dev/skills
Vercel Composition Patternsvercel-labs/agent-skills
Develop Userscriptsxixu-me/skills
Next Best Practicesvercel-labs/next-skills
Journey fit
Primary fit
Declarative web UIs from JSON catalogs are assembled during frontend build when you wire schema, definitions, and React implementations. shadcn entry splits server-safe catalog definitions from client registry mappings—core json-render + React frontend integration.
Common Questions / FAQ
Is Json Render Shadcn safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Json Render Shadcn
# @json-render/shadcn Pre-built shadcn/ui component definitions and implementations for json-render. Provides 36 components built on Radix UI + Tailwind CSS. ## Two Entry Points | Entry Point | Exports | Use For | |-------------|---------|---------| | `@json-render/shadcn/catalog` | `shadcnComponentDefinitions` | Catalog schemas (no React dependency, safe for server) | | `@json-render/shadcn` | `shadcnComponents` | React implementations | ## Usage Pattern Pick the components you need from the standard definitions. Do not spread all definitions -- explicitly select what your app uses: ```typescript import { defineCatalog } from "@json-render/core"; import { schema } from "@json-render/react/schema"; import { shadcnComponentDefinitions } from "@json-render/shadcn/catalog"; import { defineRegistry } from "@json-render/react"; import { shadcnComponents } from "@json-render/shadcn"; // 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, }, }); ``` > State actions (`setState`, `pushState`, `removeState`) are built into the React schema and handled by `ActionProvider` automatically. No need to declare them. ## Extending with Custom Components Add custom components alongside standard ones: ```typescript const catalog = defineCatalog(schema, { components: { // Standard Card: shadcnComponentDefinitions.Card, Stack: shadcnComponentDefinitions.Stack, // Custom Metric: { props: z.object({ label: z.string(), value: z.string(), trend: z.enum(["up", "down", "neutral"]).nullable(), }), description: "KPI metric display", }, }, actions: {}, }); const { registry } = defineRegistry(catalog, { components: { Card: shadcnComponents.Card, Stack: shadcnComponents.Stack, Metric: ({ props }) => <div>{props.label}: {props.value}</div>, }, }); ``` ## 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 -