Skip to content

Sidebar Collapse Toggle

Last updated 27 Oct 2026

NbSidebarCollapseToggle is the control that collapses an expanded rail and expands a collapsed one. It is one NbSidebarMenuItem, so it renders as a labelled row when the rail is expanded and as an icon with a flyout label when it is collapsed, from the same element.

Props ​

PropTypeDefaultDescription
collapseLabelstring"Collapse sidebar"Label while the rail is expanded.
expandLabelstring"Expand sidebar"Label while the rail is collapsed, and the icon-only row's accessible name.

Events ​

EventPayloadDescription
togglenoneThe person asked to switch between the two variants.