BetaPublic beta — Read the release notes
Documentation

Sidebar

Collapsible application sidebar navigation panel.

Package
@solidiom/sidebar
Version
0.6.0
Status
experimental

Generated from the package's public source.

API

Contentcomponent

                        Content(props: SidebarContentProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

                        Footer(props: SidebarFooterProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Headercomponent

                        Header(props: SidebarHeaderProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Panelcomponent

                        Panel(props: SidebarPanelProps): Element
                      

Props

aria-label?
string — Accessible label for the navigation landmark.
class?
string
style?
string | CSSProperties

children: Element

View source

Railcomponent

                        Rail(props: SidebarRailProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

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

View source

SidebarContentPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

SidebarFooterPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

SidebarHeaderPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

SidebarPanelPropsinterface

Props

aria-label?
string — Accessible label for the navigation landmark.
class?
string
style?
string | CSSProperties

children: Element

View source

SidebarRailPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

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

View source

SidebarTriggerPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Triggercomponent

                        Trigger(props: SidebarTriggerProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source