shadcn/ui

shadcn/ui is a collection of re-usable components built using Radix UI and Tailwind CSS. It provides a set of accessible, customizable, and open-source components that you can copy and paste into your apps.

Initialize shadcn/ui

shadcn/ui

Initialize shadcn/ui in your project with the CLI setup wizard

npx shadcn-ui@latest init

Add Button Component

shadcn/ui

Add the Button component to your project

npx shadcn-ui@latest add button

Add Card Component

shadcn/ui

Add the Card component to your project

npx shadcn-ui@latest add card

Add Dialog Component

shadcn/ui

Add the Dialog (modal) component to your project

npx shadcn-ui@latest add dialog

Add Input Component

shadcn/ui

Add the Input component to your project

npx shadcn-ui@latest add input

Add Select Component

shadcn/ui

Add the Select component to your project

npx shadcn-ui@latest add select

Add Tabs Component

shadcn/ui

Add the Tabs component to your project

npx shadcn-ui@latest add tabs

Add Toast Component

shadcn/ui

Add the Toast notification component to your project

npx shadcn-ui@latest add toast

Add Theme Toggle

shadcn/ui

Add the Dropdown Menu component (commonly used for theme toggles)

npx shadcn-ui@latest add dropdown-menu

Add Form Components

shadcn/ui

Add the Form components including validation and error handling

npx shadcn-ui@latest add form

Add Data Table

shadcn/ui

Add the Table component with sorting and pagination capabilities

npx shadcn-ui@latest add table

Add Calendar

shadcn/ui

Add the Calendar component for date picking and scheduling

npx shadcn-ui@latest add calendar

Add Dropdown Menu Component

shadcn/ui

Add the Dropdown Menu component to your project

npx shadcn-ui@latest add dropdown-menu

Add Toggle Component

shadcn/ui

Add the Toggle component to your project

npx shadcn-ui@latest add toggle

Add Tooltip Component

shadcn/ui

Add the Tooltip component to your project

npx shadcn-ui@latest add tooltip

Add Multiple Components

shadcn/ui

Add multiple components at once

npx shadcn-ui@latest add button card dialog

Update shadcn/ui

shadcn/ui

Update shadcn/ui to the latest version

npx shadcn-ui@latest update

List Available Components

shadcn/ui

List all available components

npx shadcn-ui@latest list