Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Alert
Displays a callout for user attention.
Alert Dialog
A modal dialog that interrupts the user with important content and expects a response.
Aspect Ratio
Displays content within a desired ratio.
Attachment
Displays a file or image attachment, its media, name, and metadata, with optional actions and upload state.
Avatar
An image element with a fallback for representing the user.
Badge
Displays a badge or a component that looks like a badge.
Bubble
Displays framed conversational content for chat text, structured output, quoted replies, suggestions, and reactions.
Calendar
A date field component that allows users to enter and edit date.
Card
Displays a card with header, content, and footer.
Carousel
A carousel with motion and swipe built using Embla.
Chart
Beautiful charts. Built using Recharts.
Checkbox
A control that allows the user to toggle between checked and not checked.
By clicking this checkbox, you agree to the terms and conditions.
Code Block
Displays code, terminal output, logs and diffs, with a header, line numbers, and highlighted lines.
$ pnpm dlx shadcn@latest add button- Checking registry.✔ Checking registry.- Installing dependencies.✔ Installing dependencies.- Updating files.✔ Created 1 file: - components/ui/button.tsxCollapsible
An interactive component which expands/collapses a panel.
@peduarte starred 3 repositories
Combobox
Autocomplete input and command palette with a list of suggestions.
Command
Fast, composable, unstyled command menu for React.
Command Palette
Search for a command to run...
Dark Mode
Add dark mode to your site with next-themes.
Data Table
Advanced data table with sorting, filtering, and pagination.
| Status | Amount | |||
|---|---|---|---|---|
success | ken99@example.com | $316.00 | ||
success | Abe45@example.com | $242.00 | ||
processing | Monserrat44@example.com | $837.00 | ||
success | Silas22@example.com | $874.00 | ||
failed | carmella@example.com | $721.00 | ||
pending | jason@example.com | $450.00 | ||
success | emma@example.com | $199.00 |
Date Picker
Date picker component combining input and calendar.
Dialog
A window overlaid on either the primary window or another dialog window, rendering the relevant content.
Direction
Text direction provider for RTL support.
Getting started
This panel follows the current text direction. Switch between LTR and RTL to see the layout mirror.
Drawer
A panel that slides in from the edge of the screen.
Empty
Empty state component for no data scenarios.
Field
Field component for form inputs with labels and error messages.
Form
Building forms with React Hook Form and Zod.
Hover Card
For sighted users to preview content available behind a link.
Input
Displays a form input field or a component that looks like an input field.
Input Group
Input component with prefix and suffix addons.
Input OTP
One-time password input component.
Item
Generic item component for lists and menus.
New login from an unknown device in San Francisco.
Design engineer at Vercel.
Kbd
Keyboard shortcut display component.
Use Ctrl + B to toggle the sidebar.
Label
Form label component.
Marker
Displays inline conversation markers such as status updates, system notes, bordered rows, and labeled separators.
Message
Lays out a single message in a conversation, with its avatar, alignment, header, and footer.
Message Scroller
A chat transcript scroller that preserves the reader's place while the conversation keeps changing.
Native Select
Styled native HTML select element.
Pagination
Pagination component for lists and tables.
Popover
Displays rich content in a portal, triggered by a button.
Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Questionnaire
An ordered set of questions with choices, progress, validation, and navigation.
Radio Group
A set of checkable buttons — known as radio buttons — where no more than one of the buttons can be checked at a time.
Resizable
Accessible resizable panel groups and layouts with keyboard support.
Scroll Area
Augments native scroll functionality for custom, cross-browser styling.
Select
Displays a list of options for the user to pick from — triggered by a button.
Separator
Visually or semantically separates content.
Radix Primitives
An open-source UI component library.
Sheet
Extends the Dialog component to display content that complements the main content of the screen.
Skeleton
Use to show a placeholder while content is loading.
Slider
An input where the user selects a value from within a given range.
Value: 33
Sonner
An opinionated toast component for React.
Spinner
Loading spinner component.
Switch
A control that allows the user to toggle between checked and not checked.
Airplane Mode is off.
Table
A responsive table component.
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV001 | Paid | Credit Card | $250.00 |
| INV002 | Pending | PayPal | $150.00 |
| INV003 | Unpaid | Bank Transfer | $350.00 |
| Total | $750.00 | ||
Tabs
A set of layered sections of content — known as tab panels — that are displayed one at a time.
Textarea
Displays a form textarea or a component that looks like a textarea.
Toast
A succinct message that is displayed temporarily.
Toggle
A two-state button that can be either on or off.
Toggle Group
A set of two-state buttons that can be toggled on or off.
Tooltip
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
Trace
A list of lines for steps like reasoning, tool calls, sources and plans, each with an icon, a title, and an optional description and status.
Transition
A view switch using the built-in transition timing of the components, with staggered delays.
Typography
Styles for headings, paragraphs, lists and other elements.
The Joke Tax Chronicles
Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.
The King's Plan
The king thought long and hard, and finally came up with a brilliant plan: he would tax the jokes in the kingdom.
"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
The Joke Tax
The king's subjects were not amused. They grumbled and complained, but the king was firm:
- 1st level of puns: 5 gold coins
- 2nd level of jokes: 10 gold coins
- 3rd level of one-liners : 20 gold coins
Install the package with pnpm add @shadcn/react and start building.
The king is watching. Pay your joke tax on time.
