Skip to content
HomeCobalt

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

A research tool's frame: its places in groups beside a fund's page, the notifications in the header, the sidebar folding to a rail from the header's control or its shortcut, and a sheet in its place below 640px. Press ? for the keys.

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%
Opens foldedA shell that opens folded, as the person left it: the rail of glyphs, each named in its tooltip, kept under a storage key for the next visit.

Filings

  • Calder Global Equity
    13F for the third quarter
  • Northgate Short Duration
    Form ADV, amended
  • Harbour Street Master Fund
    Form PF

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.json
import { AppShell, AppShellHeader, AppShellMain, Sidebar, SidebarBody, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarTrigger, useSidebar } from "@/components/cobalt/ui/sidebar"