nextjs/docs/shadcn-ui
2025-04-13 10:20:40 +02:00
..
README.md add shadcn/ui + docs 2025-04-13 10:20:40 +02:00

shadcn/ui

shadcn/ui is UI component library for React components. Shadcn/ui is modular in comparison to other component libraries. You only install the components you really need and not import anything. Further is the code stored directly in the project, instead coming from a dependencie.

Website shadcn/ui: https://ui.shadcn.com/

Next.js docs: https://ui.shadcn.com/docs/installation/next

Install shadcn/ui

npx shadcn@latest init

Install a UI component

npx shadcn@latest add <COMPONENT-NAME>

Usage in code

import { Button } from "@/components/ui/button"

export default function Home() {
  return (
    <div>
      <Button>Click me</Button>
    </div>
  )
}