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.



















