shadcn/ui Component Library
Build your component library with shadcn/ui, copying beautifully designed, accessible components directly into your project.
Overview
Built on top of Radix UI primitives and styled with Tailwind CSS, every component is accessible by default. Your AI agent can run `npx shadcn@latest add button dialog table` to install components, then customize the variants, colors, and behavior directly in your source code without fighting library abstractions.
The approach of owning your components means zero upgrade conflicts and complete control. AI agents can extend shadcn/ui components with custom variants, create compound components, build form layouts with React Hook Form integration, and implement data tables with sorting, filtering, and pagination.
Who Is This For?
- React developers building admin dashboards and SaaS applications
- Teams creating custom design systems based on accessible primitives
- Developers who want beautiful defaults with full customization control
- Engineers building form-heavy applications with integrated validation
Installation
npx shadcn@latest init
npx shadcn@latest add button card dialog Configuration
// components.json
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "zinc"
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
} Explore AI Tools
Discover the best AI tools that complement your skills
Read AI & Design Articles
Tips and trends in the world of design and AI
Related Servers
Figma MCP Server
Bridge the gap between design and code by connecting Figma to your AI agent via MCP, enabling accurate design-to-code translation.
Storybook Component Docs
Build, document, and visually test UI components in isolation using Storybook. AI agents can generate stories and catch visual regressions.
Tailwind CSS IntelliSense
Get intelligent Tailwind class suggestions, autocompletions, and linting as you style components in your editor.