🌐 Web Development
shadcn/ui
shadcn/ui
A collection of copy-and-paste React components. Based on Radix UI + Tailwind.
shadcn/ui
A collection of copy-and-paste React components. Based on Radix UI + Tailwind.
shadcn/ui is a collection of React components that you "copy and use." Instead of installing it as an npm package, you copy the source code directly into your project, which allows full customization.
It is used in the official Next.js documentation, and it is also growing rapidly after being adopted by Vercel's v0.dev.
# Initialize npx shadcn-ui@latest init # Add components npx shadcn-ui@latest add button npx shadcn-ui@latest add dialog # Usage import { Button } from "@/components/ui/button" function App() { return ( <Button variant="outline" size="lg"> Click here </Button> ) }
Designer
"I heard UI library button styles are hard to change?"
Developer
"With shadcn/ui, the code is in our project, so we can modify it however we like. We only need to change the Tailwind classes, so applying the design system is easy too."
Manual update management: Unlike npm packages, updates must be applied manually.