Skip to content

React layout components

Free React layout primitives for Tailwind: cards, containers, stacks, clusters, grids, accordions, resizable panels, split panes and app shells.

28 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

Layout primitives encode spacing so pages stay consistent: Stack for vertical rhythm, Cluster for wrapping rows, Center and Container for widths, and MasonryGrid for cards of uneven height. Card, Inset and Well set the surface level: raised, sunken or set back.

For app frames, AppShell holds a sidebar, a top bar and a scrolling content area, ResizablePanels gives draggable split panes, and ScrollArea adds themed scrollbars on top of native scrolling. Accordion and Collapsible show and hide content; both are built on Base UI.

Which one should I use?

You needUseWhy
A raised panel with header and footerCardOne spacing variable for every slot
Even vertical spacingStack4px spacing scale
A wrapping row of tags or buttonsClustergap={2} is 8px
A page-width wrapperContainerResponsive side padding
Center a short messageCenterEmpty states, auth screens
Cards of uneven heightMasonry GridKeeps source order
Stacked sections like an FAQAccordionBase UI, full keyboard
One show/hide sectionCollapsiblearia-expanded wired for you
Panes people can resizeResizable PanelsDrag or arrow keys
A fixed 50/50 splitSplit PaneStacks on mobile
An app frame with sidebarApp ShellSidebar from md up
Long content in a fixed boxScroll AreaNative scrolling underneath
Record details as label and valueDescription ListSemantic dl
A page title with actionsPage HeaderThe page's only h1
Long-form HTML or markdownProseHeadings, lists, code, quotes

28 items

npx shadcn@latest add @minidev/accordion @minidev/app-shell @minidev/aspect-ratio @minidev/card @minidev/center @minidev/cluster @minidev/collapsible @minidev/container @minidev/description-list @minidev/heading @minidev/inset @minidev/list-item @minidev/page-header @minidev/prose @minidev/scroll-area @minidev/section-header @minidev/separator @minidev/split-pane @minidev/stack @minidev/sticky-bar @minidev/text @minidev/visually-hidden @minidev/well @minidev/window-chrome @minidev/dot-pattern @minidev/masonry-grid @minidev/avatar-group @minidev/resizable-panels

Components 27

  • Accessible React accordion on Base UI, with bordered items, a rotating chevron and animated panels. Keyboard navigable, with one or many items open at once.

    npx shadcn@latest add @minidev/accordion
  • Tailwind app shell layout with a fixed width sidebar slot, a topbar slot and a scrolling main area. The sidebar hides below the md breakpoint for mobile.

    npx shadcn@latest add @minidev/app-shell
  • Shadcn compatible aspect ratio wrapper that locks media to a ratio such as 16:9 or 1:1 using CSS aspect-ratio, with overflow clipped for images and video.

    npx shadcn@latest add @minidev/aspect-ratio
  • Shadcn compatible card with header, title, description, action, content and footer slots, a compact size and edge to edge images. Built for Tailwind v4.

    npx shadcn@latest add @minidev/card
  • Layout helper that centers content horizontally and vertically in a narrow, text-centered column. Handy for empty states, auth screens and simple heroes.

    npx shadcn@latest add @minidev/center
  • Flex layout primitive that wraps children in a row with vertical centering and a numeric gap on the 4px scale. Great for tags, buttons and meta rows.

    npx shadcn@latest add @minidev/cluster
  • Shadcn compatible collapsible on Base UI: a full width trigger that shows or hides a panel of content. Accessible expanded state and keyboard support.

    npx shadcn@latest add @minidev/collapsible
  • Responsive page container that centers content with side padding and a max width preset: sm, default, lg or full. The basic wrapper for Tailwind layouts.

    npx shadcn@latest add @minidev/container
  • Semantic dl, dt and dd list of label and value pairs in a responsive two column grid with dividers. Good for record details and summaries in Tailwind apps.

    npx shadcn@latest add @minidev/description-list
  • A heading primitive that renders h1 through h6 with a matched type scale, tuned letter spacing and medium weight. Pick the level with the as prop in React.

    npx shadcn@latest add @minidev/heading
  • A recessed panel with a sunken background, rounded border and responsive padding for grouping secondary content, code samples or previews inside a card or page.

    npx shadcn@latest add @minidev/inset
  • A flexible list row with leading and trailing slots around a truncated heading and description, split by hairline borders. Build settings or contact lists.

    npx shadcn@latest add @minidev/list-item
  • A Tailwind page title block with an h1, an optional description and a wrapping slot for action buttons on the right, set off by a bottom border.

    npx shadcn@latest add @minidev/page-header
  • A Tailwind typography wrapper for raw HTML or MDX that styles headings, muted paragraphs, links, lists, inline code and blockquotes at a readable measure.

    npx shadcn@latest add @minidev/prose
  • Custom scroll area on Base UI with a thin rounded thumb, vertical or horizontal scrollbars and a focus ring on the viewport. A shadcn-compatible ScrollArea.

    npx shadcn@latest add @minidev/scroll-area
  • Tailwind section header with a title, optional muted description and a right-aligned actions slot that wraps on narrow screens. Use it above cards and tables.

    npx shadcn@latest add @minidev/section-header
  • Hairline separator on Base UI that draws a 1px rule horizontally or vertically, stretching to fill its container. A drop-in shadcn Separator for React layouts.

    npx shadcn@latest add @minidev/separator
  • Static two-column split pane that stacks on mobile and sits side by side from md up, with a hairline divider. Handy for compare views and editor previews.

    npx shadcn@latest add @minidev/split-pane
  • Vertical stack layout primitive that arranges children in a flex column with a gap prop from 1 to 8 on a 4px scale. Accepts all normal div props in React.

    npx shadcn@latest add @minidev/stack
  • Sticky bottom action bar with a translucent blurred background and a hairline top border. Keeps save, cancel or checkout actions in reach on long pages.

    npx shadcn@latest add @minidev/sticky-bar
  • Text paragraph primitive with muted, subtle and mono variants on top of your base type styles. Keeps secondary copy and inline technical text consistent.

    npx shadcn@latest add @minidev/text
  • Visually hidden wrapper that keeps content available to screen readers while hiding it on screen via sr-only. Use it for icon button labels and extra context.

    npx shadcn@latest add @minidev/visually-hidden
  • A recessed Tailwind panel with a sunken background, hairline border and inner highlight. Use it to set apart notes, code output or secondary content.

    npx shadcn@latest add @minidev/well
  • A macOS style window frame for React with three traffic light dots, a truncated title bar and a padded content area for framing demos and screenshots.

    npx shadcn@latest add @minidev/window-chrome
  • A masonry layout for React that keeps source order: a CSS grid with measured row spans, so keyboard and screen reader order match the visual flow.

    npx shadcn@latest add @minidev/masonry-grid
  • React avatar group that stacks overlapping avatars with tooltips, collapses extras into a +N chip with a popover list and falls back to tinted initials.

    npx shadcn@latest add @minidev/avatar-group
  • React split panes with draggable handles in both directions, min and max sizes, snap to collapse, keyboard resizing, double click reset and nested groups.

    npx shadcn@latest add @minidev/resizable-panels

Motion 1

  • A dot or grid background drawn as one SVG pattern, faded at the edges, with an optional accent glow that follows the pointer and lights the dots beneath it.

    npx shadcn@latest add @minidev/dot-pattern

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

See them live

Galleries render these components with sample data in every state.

Frequently asked questions

Why use layout components instead of Tailwind classes?

Stack, Cluster and Container encode spacing and width decisions once, so pages stay consistent and a change touches one file. Gaps follow the 4px scale: gap={2} on Cluster is 8px.

Are there resizable panels?

Yes. ResizablePanels has drag handles; arrow keys move them, Shift jumps, Home and End go to the limits, Enter collapses a collapsible pane and a double click resets the pair. For a fixed split use SplitPane.

Should I use an accordion, a collapsible or tabs?

Accordion for several sections that readers scan by heading, such as FAQs. Collapsible for one optional block. Tabs when exactly one view shows at a time and the views are peers.

How do I style markdown or CMS content?

Wrap it in Prose. It styles headings, spacing, links, lists, code and quotes in HTML you do not control, such as docs, blog posts and model answers.