BumpyClock/agent-templates / skills_archive/merged-into-parent/shadcn
shadcn
UnverifiedInstall and configure shadcn/ui, a collection of beautifully-designed, accessible components built with TypeScript, Tailwind CSS, and Radix UI primitives. Use this skill to set up shadcn/ui in various frameworks including Next.js, Vite, Remix, Astro, and more.
shadcn/ui
shadcn/ui is a collection of beautifully-designed, accessible components and a code distribution platform. It is built with TypeScript, Tailwind CSS, and Radix UI primitives. It supports multiple frameworks including Next.js, Vite, Remix, Astro, and more. Open Source. Open Code. AI-Ready. It also comes with a command-line tool to install and manage components and a registry system to publish and distribute code.
Use the repo's existing package manager. If none is established, prefer bun, then pnpm, then npm.
Overview
- Introduction: Core principles—Open Code, Composition, Distribution, Beautiful Defaults, and AI-Ready design.
- CLI: Command-line tool for installing and managing components.
- components.json: Configuration file for customizing the CLI and component installation.
- Theming: Guide to customizing colors, typography, and design tokens.
- Changelog: Release notes and version history.
- About: Credits and project information.
Installation
- Next.js: Install shadcn/ui in a Next.js project.
- Vite: Install shadcn/ui in a Vite project.
- Remix: Install shadcn/ui in a Remix project.
- Astro: Install shadcn/ui in an Astro project.
- Laravel: Install shadcn/ui in a Laravel project.
- Gatsby: Install shadcn/ui in a Gatsby project.
- React Router: Install shadcn/ui in a React Router project.
- TanStack Router: Install shadcn/ui in a TanStack Router project.
- TanStack Start: Install shadcn/ui in a TanStack Start project.
- Manual Installation: Manually install shadcn/ui without the CLI.
Components
Form & Input
- Form: Building forms with React Hook Form and Zod validation.
- Field: Field component for form inputs with labels and error messages.
- Button: Button component with multiple variants.
- Button Group: Group multiple buttons together.
- Input: Text input component.
- Input Group: Input component with prefix and suffix addons.
- Input OTP: One-time password input component.
- Textarea: Multi-line text input component.
- Checkbox: Checkbox input component.
- Radio Group: Radio button group component.
- Select: Select dropdown component.
- Switch: Toggle switch component.
- Slider: Slider input component.
- Calendar: Calendar component for date selection.
- Date Picker: Date picker component combining input and calendar.
- Combobox: Searchable select component with autocomplete.
- Label: Form label component.
Layout & Navigation
- Accordion: Collapsible accordion component.
- Breadcrumb: Breadcrumb navigation component.
- Navigation Menu: Accessible navigation menu with dropdowns.
- Sidebar: Collapsible sidebar component for app layouts.
- Tabs: Tabbed interface component.
- Separator: Visual divider between content sections.
- Scroll Area: Custom scrollable area with styled scrollbars.
- Resizable: Resizable panel layout component.
Overlays & Dialogs
- Dialog: Modal dialog component.
- Alert Dialog: Alert dialog for confirmation prompts.
- Sheet: Slide-out panel component (drawer).
- Drawer: Mobile-friendly drawer component using Vaul.
- Popover: Floating popover component.
- Tooltip: Tooltip component for additional context.
- Hover Card: Card that appears on hover.
- Context Menu: Right-click context menu.
- Dropdown Menu: Dropdown menu component.
- Menubar: Horizontal menubar component.
- Command: Command palette component (cmdk).
Feedback & Status
- Alert: Alert component for messages and notifications.
- Toast: Toast notification component using Sonner.
- Progress: Progress bar component.
- Spinner: Loading spinner component.
- Skeleton: Skeleton loading placeholder.
- Badge: Badge component for labels and status indicators.
- Empty: Empty state component for no data scenarios.
Display & Media
- Avatar: Avatar component for user profiles.
- Card: Card container component.
- Table: Table component for displaying data.
- Data Table: Advanced data table with sorting, filtering, and pagination.
- Chart: Chart components using Recharts.
- Carousel: Carousel component using Embla Carousel.
- Aspect Ratio: Container that maintains aspect ratio.
- Typography: Typography styles and components.
- Item: Generic item component for lists and menus.
- Kbd: Keyboard shortcut display component.
Misc
- Collapsible: Collapsible container component.
- Toggle: Toggle button component.
- Toggle Group: Group of toggle buttons.
- Pagination: Pagination component for lists and tables.
Dark Mode
- Dark Mode: Overview of dark mode implementation.
- Dark Mode - Next.js: Dark mode setup for Next.js.
- Dark Mode - Vite: Dark mode setup for Vite.
- Dark Mode - Astro: Dark mode setup for Astro.
- Dark Mode - Remix: Dark mode setup for Remix.
Forms
- Forms Overview: Guide to building forms with shadcn/ui.
- React Hook Form: Using shadcn/ui with React Hook Form.
- TanStack Form: Using shadcn/ui with TanStack Form.
- Forms - Next.js: Building forms in Next.js with Server Actions.
Advanced
- Monorepo: Using shadcn/ui in a monorepo setup.
- React 19: React 19 support and migration guide.
- Tailwind CSS v4: Tailwind CSS v4 support and setup.
- JavaScript: Using shadcn/ui with JavaScript (no TypeScript).
- Figma: Figma design resources.
- v0: Generating UI with v0 by Vercel.
MCP Server
- MCP Server: Model Context Protocol server for AI integrations. Allows AI assistants to browse, search, and install components from registries using natural language. Works with Claude Code, Cursor, VS Code (GitHub Copilot), Codex and more.
Registry
- Registry Overview: Creating and publishing your own component registry.
- Getting Started: Set up your own registry.
- Examples: Example registries.
- FAQ: Common questions about registries.
- Authentication: Adding authentication to your registry.
- Registry MCP: MCP integration for registries.
Registry Schemas
- Registry Schema: JSON Schema for registry index files. Defines the structure for a collection of components, hooks, pages, etc. Requires name, homepage, and items array.
- Registry Item Schema: JSON Schema for individual registry items. Defines components, hooks, themes, and other distributable code with properties for dependencies, files, Tailwind config, CSS variables, and more.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |