shadcn/ui Component Library

Complete visual reference — 40+ components with all variants

Buttons

Button component with multiple variants, sizes, and states

Variants
Sizes
With Icons
States

Form Inputs

Input, textarea, select, checkbox, radio, and switch components

Text Input
Textarea
Select
Switch
Checkbox & Radio
Disabled State

Data Display

Cards, tables, badges, avatars, and more

Cards

Card Title

Card description goes here. This is a basic card component.

JD

John Doe

@johndoe

This card has an avatar and user information.

Stats

New
Revenue $12,345
Users 1,234
Badges
Default Secondary Outline Success Warning Error
Avatars
AB
CD
EF
AB
CD
EF
+5
Table
Name Status Role Actions
JD
John Doe
john@example.com
Active Admin
JS
Jane Smith
jane@example.com
Pending User
BJ
Bob Johnson
bob@example.com
Active Editor

Feedback

Alerts, progress bars, skeletons, and toasts

Alerts

Default Alert

This is a default alert with some information.

Error Alert

Something went wrong. Please try again.

Warning Alert

Please review your settings before continuing.

Success Alert

Your changes have been saved successfully!

Progress Bar
Progress 60%
Loading... 33%
Complete 100%
Skeleton Loaders
Toast Notification
Success
Your changes have been saved.

Layout & Misc

Separators, sliders, and more

Separator

Content above separator

Content below separator

Left
Right
Slider

Color Palette

Semantic color tokens with light and dark mode support

Primary

--primary

Secondary

--secondary

Destructive

--destructive

Muted

--muted

Accent

--accent

Card

--card

Popover

--popover

Border

--border

Color Format

All colors use HSL format: hue saturation lightness

Example: 222.2 47.4% 11.2%