Sidebar-2
hex-ui/sidebar-2FreeBlock
A sidebar built for developer app dashboards
Live preview
live · rendered by the registry
Rendered by hex-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://hexui.sh/r/sidebar-2.jsonSource
1import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"2import { AppHeader } from "../../components/app-header"3import { AppSidebar } from "../../components/app-sidebar"45// Customize the expanded sidebar width via the `--sidebar-width` CSS variable.6const SIDEBAR_PROVIDER_STYLE = {7 "--sidebar-width": "14rem",8} as React.CSSProperties910export default function Page() {11 return (12 <SidebarProvider defaultOpen={false} className="min-h-0 flex-1" style={SIDEBAR_PROVIDER_STYLE}>13 <div className="flex min-h-svh w-full flex-col">14 <AppHeader />1516 <div className="flex min-h-0 flex-1">17 <AppSidebar />1819 <SidebarInset className="bg-sidebar">20 {/* This area acts as a placeholder canvas for the page content preview. */}21 <div className="flex flex-1 flex-col p-4">22 <div className="min-h-screen flex-1 rounded-xl bg-muted/50 md:min-h-min" />23 </div>24 </SidebarInset>25 </div>26 </div>27 </SidebarProvider>28 )29}
What it pulls in
npm packages
Other registry items
Files it writes
More from hex-ui
All 34 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Banner-1banner-1 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Banner-2banner-2 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-1cta-1 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-2cta-2 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-3cta-3 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-4cta-4 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Faq-1faq-1 | hex-ui | Blocks | Free | no deps · 3 files | |
| Faq-2faq-2 | hex-ui | Blocks | Free | no deps · 3 files |
