Skip to main content

Sidebar

Pop-up menu (settings, sign out, …); omit for a static chip.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

Pop-up menu (settings, sign out, …); omit for a static chip.

Accessibility

Landmark structure (header/nav/footer) with skip-to-content support. Collapsible navigation keeps an accessible name when collapsed.

Import

const { Sidebar } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
side"left" | "right"Which edge it attaches to.
heroReact.ReactNodeFixed header content — a hero title or avatar + metadata.
headerExtraReact.ReactNodeExtra header content below the hero (e.g. a search field or CTA).
sectionsSidebarSection[] | SidebarNavItem[]YesNav sections (divided); a bare item array is treated as one section.
userSidebarUserFixed footer user chip + optional pop-up menu.
isCollapsedbooleanCollapse to an icon rail (hides labels, keeps icons).
ariaLabelstring
classNamestring