Components
518 components in 50 categories. Every one installs with the shadcn CLI.
Buttons 10
Buttons, toggles, and press-to-act controls.
- ButtonA button for an action on the page, such as Save or Delete. It has 9 looks and 5 sizes, and a spinner that keeps its width while the action runs.
- ToggleA button that stays on or off, such as Bold, Mute, or Pin. It has two looks, four sizes, and the same shape as Button.
- Button GroupButtons, fields, and menu triggers that share their edges and read as one control, in a row or a column.
- Toggle GroupA set of toggles that share one value, such as text alignment. One or many can be on, in a row, a column, or as picture tiles.
- Copy ButtonA button that copies a value, such as a key or a link, with one press. Its icon turns into a check for 2 seconds, or a cross when the copy fails.
- Split ButtonA button with the main action in front and its close variants behind a small arrow. The last pick from the menu becomes the main action.
- Hold ButtonA button that runs its action only after you press and hold it. The fill grows while you hold and drains back if you let go early.
- Swipe to ConfirmA track with a knob that you drag to the end to confirm an action that is hard to undo, such as a payment. It shows pending, done, and error.
- Theme SwitchA control that switches a site between light and dark: an icon button, a switch, or a Light, Dark, and System choice, with an animated page change.
- Tactile ButtonA button with a flat face on a darker ledge, in any color. A press drops the face onto the ledge. One CSS variable sets the color.
Menus and Toolbars 10
Menus, command palettes, toolbars, and docks.
- MenuA list of actions that opens from a button. It holds items with icons and keys, links, checkboxes, radio choices, submenus, and a filter field.
- ToolbarA row or column of controls, such as the bar of a text editor. Tab reaches it once, and the arrow keys move between its buttons.
- Action BarA bar that floats at the bottom of the screen while you select rows. It shows the count, the bulk actions, and a clear button. Escape clears the selection.
- Context MenuA menu that opens where people right-click or press and hold. It holds the actions for the thing under the pointer, with keys, toggles, and submenus.
- MenubarA row of menus at the top of an app, such as File, Edit, and View. People open one and move to the next with the arrow keys.
- Speed DialOne round button that fans out a short list of actions with labels. It opens to four sides in three sizes, and the gooey look pulls each action out like jelly.
- CommandA search field over a list of commands. People type a few letters to find an action or a page, as in a command palette or a quick switcher.
- Magnifying DockA row of icons that grow and lift toward the pointer, the nearest one most. One name label slides from icon to icon.
- Morph MenuA menu pill that springs into a panel of links. The box grows on its own springs, the lines turn into a cross, and each link bounces in.
- Corner BloomCard actions that bloom out of one corner of the card on hover or focus, joined to it by a liquid neck, and melt back in when you leave.
Dialogs and Popovers 10
Layers over the page: dialogs, sheets, drawers, popovers, tooltips.
- DialogA window over the page for one task, such as a short form or a detail view. The page behind waits until people close it.
- PopoverA panel that opens from a button and stays until people close it. It holds content they can use, such as a share link, filters, or a short form.
- Alert DialogA window that asks a yes or no question before an action that deletes data or cannot be undone. The page waits until the person answers.
- Hover CardA card that opens when people point at a link or tab to it. It shows a preview, such as a profile or a page, so they need not leave.
- DrawerA panel that slides in from an edge of the screen. People drag it with a finger to open or close it, as a bottom sheet or a side panel.
- TooltipA short label that shows when people point at a control or tab to it, such as the name of an icon button. It can have an arrow.
- Floating PanelA small window over the page that people can move, resize, fold to its header, or make full size. On phones it opens as a bottom sheet.
- Link PreviewA link shown as a card with the page title, picture, and site name, so people see where it goes. It comes as a card, a compact row, a chip, or a hover card.
- LightboxA full-screen viewer for photos and videos. The thumbnail grows into the photo, people swipe or use arrows to move, pinch to zoom, and drag down to close.
- Dialog StackDialogs that open on top of each other for a task with steps. The dialog below steps back, and Back or Escape returns one level.



























































