Sign up and get 15% off every plan.

Sign up
Menu

Open-source library, MIT licence

shadcn/ui

The plain, well-made building blocks most React sites now start from: buttons, forms, menus, dialogs, tables and charts. 64 components, each running live with its code to copy. The first one under each heading is free; the rest come with paid plans.

Set up once

Every shadcn/ui component needs Tailwind CSS and a small helper called cn in your project. One command sets up both. After that, each component is one more command, or a file you paste in.

Tailwind, the theme and the cn helper, in one commandTerminal
npx shadcn@latest init
lib/utils.ts (init writes this for you)React
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

Buttons

4

Forms

16

Overlays

7

Feedback

5

Layout and content

12

Tables and charts

3

Text

3

Chat

5