Sidebar
Frames an app: the product's places in groups down one side, a bar above the page, and the page itself, with the side folding to a rail of glyphs and opening as a sheet on a phone.
Examples
Fund
Harbour Street Master Fund
Advised by Harbour Street Partners, New York
Largest holdings
- Calder Global Equity12.4%
- Northgate Short Duration9.8%
- Oakline Energy7.1%
Filings
Usage
Use it when
- A product with five or more places, or places in groups: a research tool, a dashboard, an admin area.
- A product people keep open all day, where folding the side to glyphs gives the page its room.
Use something else when
- Two to five places and no groups. Use Nav instead, across the top, with NavTabs on a phone.
- The sections of one settings page. Use SettingsLayout instead.
- The views of one record. Use Tabs instead.
Rules
General
Content
Avoid
Limits
Install
npx shadcn@latest add https://kaanarici.com/r/cobalt/sidebar.jsonimport { AppShell, AppShellHeader, AppShellMain, Sidebar, SidebarBody, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarTrigger, useSidebar } from "@/components/cobalt/ui/sidebar"