Standard page with optional sidebar.
import { PageLayout } from "@/components/ui";Main Content
PageLayout provides a standard page structure with an optional sidebar.
<PageLayout>
<Container>
<h1>Page Title</h1>
<p>Page content goes here</p>
</Container>
</PageLayout>Add sidebar navigation
<PageLayout sidebar={ <nav className="space-y-1 p-4"> <NavLink href="/docs/intro">Introduction</NavLink> <NavLink href="/docs/installation">Installation</NavLink> <NavLink href="/docs/components">Components</NavLink> </nav> } sidebarWidth={280}> <Container> <h1>Documentation</h1> <p>Content here...</p> </Container></PageLayout>Allow sidebar to collapse
<PageLayout sidebar={<Sidebar />} sidebarPosition="left" collapsible> {children}</PageLayout>Configure your app with the features you need and download production-ready code.
Start Configuring