Components
518 components in 50 categories. Every one installs with the shadcn CLI.
Layout 18
Structure of a page: stacks, separators, scroll areas, folds, carousels.
- AccordionA stack of headings that each open a panel of text under them. Use it for an FAQ or for settings groups. It has four looks.
- CarouselPhotos, cards, or quotes that people move through one at a time, with arrows, dots, and a count. It works right to left.
- StackA pile of any items: the front item whole and the rest peeking out behind it. It opens into a full list on hover, focus, tap, or a button.
- Decorative SeparatorA playful line between groups of content: a squiggle, a zigzag, or a stitch. It can move, take a color, and hold a short label.
- Gooey AccordionAn accordion on one soft surface. An open item pulls away with a liquid neck that snaps, and the panel, gap, and corners spring past their end and settle.
- MarqueeA band of logos, quotes, or news that moves at a steady speed. It slows on hover, stops on keyboard focus, and people can drag it.
- SeparatorA line between groups of content, horizontal or vertical: solid, dashed, dotted, double, or fade, in any status tone, with an optional label in the middle.
- Aspect RatioA box that keeps a width-to-height ratio, so photos and video keep their shape and the page does not move while they load. It can animate to a new ratio.
- CollapsibleOne button that shows and hides a panel of content under it.
- DirectionSets the reading direction for the parts inside it. In right to left, arrow keys swap and menus open on the correct side.
- ResizablePanels and grids of cells that people size with a drag or the keyboard. The lines show hover, drag, and focus, with a 44px touch target.
- SpoilerLong content cut at a set height with a fade, and a Show more button that opens the rest.
- Swipe DeckA pile of cards: swipe the top card to a side to choose, as in a dating app. Buttons, arrow keys, and undo do the same without a drag.
- PortalRenders its children at the end of the page body or in an element you pick, so a clipped or turned parent does not trap them.
- WorkspacePanes of tabs that people arrange: drag a tab to another pane or to an edge to split it, resize panes, maximize one, and save the layout.
- Scroll AreaA box that scrolls natively with thin scrollbars of its own and optional edge fades.
- Overflow ListOne row of items that never wraps: what does not fit folds into a +N button that opens the rest. For Badges, chips, breadcrumb steps, or toolbar buttons.
- ScrollerA row that scrolls sideways, with a soft fade and a chevron at each edge that hides content.



































