Component

Sidebar

A vertical navigation panel with sections, items, and active state. Supports collapsed mode and role-based visibility. Uses the headless @refraction-ui/sidebar core.

Examples

Sidebar with grouped sections and active item highlighting.

Installation

$pnpm add @refraction-ui/react-sidebar

Usage

Code example not yet available for flutter.

Props

PropTypeDefaultDescription
sectionsSidebarSection[]--Array of sections with title and items.
currentPathstring--Current pathname for active item highlighting.
collapsedbooleanfalseWhether the sidebar is collapsed.
userRolesstring[]--User roles for visibility-based filtering.
classNamestring--Additional CSS classes.