Two-column layout with sidebar and main content for documentation and content-heavy pages
<SidebarLayout
sidebar={<Sidebar />}
position="left"
sidebarWidth="16rem"
stickySidebar
gap="2rem"
>
{children}
</SidebarLayout>sidebarReact.ReactNoderequiredSidebar content
position"left" | "right"default: "left"Sidebar position
sidebarWidthstring | numberdefault: "16rem"Sidebar width (CSS value)
gapstring | numberdefault: "2rem"Gap between sidebar and content
breakpoint"sm" | "md" | "lg" | "xl" | "2xl"default: "lg"Breakpoint where sidebar appears (Tailwind breakpoint)
stickySidebarbooleandefault: falseMake sidebar sticky (scroll with page)
sidebarHeightstringdefault: "100vh"Sidebar height when sticky
<SidebarLayout
sidebar={<Nav />}
position="left"
>
<Content />
</SidebarLayout><SidebarLayout
sidebar={<TOC />}
position="right"
>
<Content />
</SidebarLayout>Left sidebar for navigation, main content for docs, and optional right sidebar for table of contents.
Main content for article, sidebar for related posts, tags, or author information.
Left sidebar for settings categories, main area for form controls.
Left sidebar for filters and categories, main area for product grid.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Notice how the sidebar remains visible as you scroll through the content. This is particularly useful for navigation or table of contents.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Notice how the sidebar remains visible as you scroll through the content. This is particularly useful for navigation or table of contents.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Notice how the sidebar remains visible as you scroll through the content. This is particularly useful for navigation or table of contents.