Skip to main content

Module sidebar_nav

Module sidebar_nav 

Source
Expand description

Stable-ID, filterable navigation composed over gpui-component’s Sidebar primitives.

The entity’s only rendering input is one flattened snapshot of visible rows. Sections, items, filtering, and expansion resolve into a single [VisibleRow] recomputed when the state it derives from changes and never from Render, so virtualization spans rows rather than section roots: a section holding ten thousand expanded descendants constructs the same bounded window as a section holding ten.

Flattening costs the tree relationships that element nesting used to carry, so every row states them: level, parent, and position within its visible sibling set. Those fields are what the ARIA tree keyboard model walks and what the AccessKit nodes report, which is the sanctioned way to describe a tree whose rows cannot contain one another.

Structs§

SidebarNav
A hybrid-controlled, filterable application sidebar.
SidebarNavItem
One application-owned recursive sidebar item.
SidebarSection
One application-owned labeled section of sidebar items.

Enums§

SidebarNavEvent
A typed application intent emitted by SidebarNav.
SidebarNavPresentation
How the navigation draws its outer shell.