Sidebar
Collapsible application sidebar navigation panel.
Generated from the package's public source.
API
Contentcomponent
Content(props: SidebarContentProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Footercomponent
Footer(props: SidebarFooterProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Headercomponent
Header(props: SidebarHeaderProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Panelcomponent
Panel(props: SidebarPanelProps): Element
Props
aria-label?string— Accessible label for the navigation landmark.class?stringstyle?string | CSSProperties
children: Element
Railcomponent
Rail(props: SidebarRailProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Rootcomponent
Root(props: SidebarRootProps): Element
Props
collapsedWidth?string— Width when collapsed.collapsible?boolean— Whether the sidebar can be collapsed.defaultOpen?boolean— Default open state (uncontrolled).disabled?boolean— Disable all interactions.expandedWidth?string— Width when expanded.onOpenChange?(open: boolean) => void— Called when open/collapsed state changes.open?Accessor<boolean>— Controlled open state.side?"left" | "right"— Which side the sidebar is on.
children: Element
SidebarContentPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
SidebarFooterPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
SidebarHeaderPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
SidebarPanelPropsinterface
Props
aria-label?string— Accessible label for the navigation landmark.class?stringstyle?string | CSSProperties
children: Element
SidebarRailPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
SidebarRootPropsinterface
Props
collapsedWidth?string— Width when collapsed.collapsible?boolean— Whether the sidebar can be collapsed.defaultOpen?boolean— Default open state (uncontrolled).disabled?boolean— Disable all interactions.expandedWidth?string— Width when expanded.onOpenChange?(open: boolean) => void— Called when open/collapsed state changes.open?Accessor<boolean>— Controlled open state.side?"left" | "right"— Which side the sidebar is on.
children: Element
SidebarTriggerPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
Triggercomponent
Trigger(props: SidebarTriggerProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element