Appearance
Sidebar
Collapsible app navigation bound to the global sidebar state.
Usage
html
<aside data-component="Sidebar"></aside>Behavior
- Toggle button switches
store.sidebarbetween "default" and "collapsed". - Component reflects state via
data-statefor styling.
Accessibility
- Toggle button has
aria-expandedandaria-controlspointing to the nav.
Examples
Programmatically collapse/expand via the global store:
ts
import { store } from "../../src/js/store";
// Collapse
store.set("sidebar", "collapsed");
// Expand
store.set("sidebar", "default");Prev: ThemeSwitcher | Next: Loader
See also: Docs Index | All Components