Layouts
Nested Layouts
Grouped Layouts
Streaming with Suspense
Root Layouts
File Conventions
Loading
Error
Data Fetching
Static-Site Generation
Server-Side Rendering
Incremental Static Regeneration
Components
Client Context
Styling
CSS and CSS-in-JS
acme.com
/
Home
Electronics
Clothing
Books
0 Clicks
children
Layouts
A layout is UI that is shared between multiple pages. On navigation, layouts preserve state, remain interactive, and do not re-render. Two or more layouts can also be nested.
Try navigating between categories and sub categories.
Learn more
Created by the
Next.js
team at
Vercel
.
View the code
or
deploy your own
.