React layout components for Tailwind CSS
Layout components give a screen its structure. App Shell is the whole admin layout in one component: a collapsible, resizable sidebar, a top bar and the page. Page Header and Entity Header form the top of an admin page or a record, with titles, badges, key facts and actions. Detail Layout arranges a record into a main column of sections and a side panel, Settings Layout follows the macOS and iOS settings pattern with a save bar, and Split View shows a list and its detail side by side. Toolbar sits above a list or table with search, filter chips, sort and a view switch. Card, Accordion, Collapsible, Separator and Scroll Area are the smaller pieces most pages are built from.
All Layout[12]
CardFree
A React card component for listings, stats, settings and plans: media, header, body and footer parts, and a lift-and-press mode.
App Shell
A React app shell for admin layouts: a collapsible, resizable sidebar, a top bar and the page, with a drawer and a tab bar on phones.
AccordionFree
A React accordion component for FAQs, settings sections and order details, with four variants, icons, descriptions and one or many open.
Collapsible
A React collapsible section that opens and closes with a spring height animation, plus CollapsibleText, the show more clamp for long text.
Detail Layout
A React detail layout for record pages (a client, a contact, an invoice): header, a main column of sections, a side panel and section cards.
Entity Header
A React entity header for record pages (a client, a deal, an invoice): name, status, key facts, actions, favorite, follow and a pager.
Page Header
A React page header for admin screens: breadcrumb, title with avatar and badges, description, meta, actions that fold into a menu, and tabs.
Scroll Area
A React scroll area with slim custom scrollbars, edge fades that ease out at the ends, snap scrolling and prev / next buttons for rails.
Settings Layout
A React settings page layout like macOS and iOS: a section nav, grouped label and control rows, and a save bar that slides up on changes.
Split View
A React split view: a list and its detail side by side on wide screens, a push and pop stack with swipe back on phones.
Guides
Tutorials and guides from the blog that use these components.
Building UI with AI agents
Codex Frontend Design Skill: Pair It With Real Components
A Codex frontend design skill sets taste but has no components. Where Codex loads skills, which ones exist, and how to pair one with a registry over MCP.
10 min read
Build it: screens and apps
Order History Page Design: List, Detail and Actions
Order history page design for React: orders grouped by month, search and a status filter, track, buy again and invoice actions, and a detail that fits phones.
9 min read
Next.js and Tailwind CSS
shadcn Tailwind v4 Migration: Step by Step From v3
A shadcn tailwind v4 migration in order: the upgrade codemod, tailwind.config into @theme inline, hsl to oklch, border and ring fixes, and tw-animate-css.
10 min read
Next.js and Tailwind CSS
Tailwind v4 Nextjs 16 Setup: Config, Fonts and 5 Fixes
Set up a Tailwind v4 Nextjs 16 app: PostCSS plugin or the new Turbopack loader, @theme tokens in CSS, next/font variables and fixes for five errors.
9 min read
Mobile UI in React
Nextjs PWA Without next-pwa: Offline Page and App Shell
Build a Nextjs PWA on Next.js 16 without next-pwa: app/manifest.ts, a hand-written offline service worker, an install prompt and an app shell with safe areas.
12 min read
Mobile UI in React
Shadcn Sidebar Mobile: Fix the Sheet and Add a Tab Bar
Shadcn sidebar mobile fixes: close the sheet on navigation, add the hidden title, stop height bugs, then pair the drawer with a bottom tab bar on phones.
9 min read
About Layout
These components change their structure on phones instead of only shrinking. The app shell turns its sidebar into a drawer with a tab bar, the split view becomes a push and pop stack with swipe back, settings become an iOS grouped list, and page header actions move under the title when space runs out. 3 of the 12 layout components are free: the source is open to everyone through the CLI, shadcn and the docs page (the MCP server needs a free account key). The other 9 are part of Pro.