Components / Layout

Sidebar macrolite

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

Built from
Box
Children
many
Loading the renderer…
Sidebar rendered by the React renderer on Web
Web React
Sidebar rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Sidebar rendered by the Compose renderer on Android
Android Compose
Sidebar rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-sidebar, painted by each native renderer.

collapsed
PropTypeDefaultDescription
sideleft | right"left"Which edge the column sits on.
widthnumber240The column width in px.
collapseBelownever | sm | md | lg | xl"md"Hides the column below this breakpoint.
collapsedbindbooleanfalseHides the column at any width; bind it to a toggle.
NameKind
sidebarslot: one component by id
Role
none
Semantics
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/rootSidebar/sidebarSidebar/main
Keyed by
side:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme