Skip to content

Sidebar

A two-column shell: a navigation column (sidebar slot) beside the children, hidden narrow or collapsed.

Group: Layout · Kind: macro · in the lite catalog

collapseBelow · never
Pick a board on the left.

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-sidebar on Web
exponential-ui-sidebar on iOS
exponential-ui-sidebar on Android
exponential-ui-sidebar on Desktop
collapsed
Pick a board on the left.
Prop Type Required Bindable Description
side left | right – – Which edge the column sits on. Default "left".
width number – – The column width in px. Default 240.
collapseBelow never | sm | md | lg | xl – – Hides the column below this breakpoint. Default "md".
collapsed boolean – yes Hides the column at any width; bind it to a toggle. Default false.

None.

  • sidebar: one component by id

many

No basic catalog component maps here.

Box

Role: none

navigation landmark (the sidebar slot) beside main. Layout only; its sidebar part is a navigation landmark, its main part the main landmark ($a11y).

Not focusable; no keys.

Recipe parts: Sidebar/root Sidebar/sidebar Sidebar/main

Keyed by: side :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Box · Stack · Grid · Card · Separator · List · Resizable · ScrollArea