layout
Sidebar
Collapsible application sidebar with section headings, icon and label items, active states, and mobile off-canvas overlay.
Copied!
Examples
Operations menu
Sections for penjualan and inventori in an SME ops app.
Copied!
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| collapsed | bool | false | Initial collapsed desktop width showing icons only. |
| label | string | Sidebar | Accessible name for the navigation landmark. |
| item.current | bool | false | Marks the active destination with aria-current="page". |
Accessibility notes
Architected with WCAG 2.2 AA patterns in mind. These notes document the exact keyboard and ARIA behavior for this component.
- Sidebar is a nav landmark with an accessible label.
- Active items set aria-current="page".
- Collapsed desktop mode keeps icon affordances and uses title tooltips for labels.
- Mobile off-canvas mode traps focus with x-trap and closes on Escape or overlay click.
- Dispatch ui-sidebar-open on window to open the mobile drawer from a sibling control.
Built by Praesepe
Architecture & custom software partner
Praesepe uses these exact UI primitives to ship SME dashboards, inventory systems, invoicing desks, and internal tools faster, without rebuilding a design system for every client.
- Same Blade + Tailwind 4 + Alpine 3 stack you see in this docs site
- Opinionated for Indonesian SME ops: invoices, stock, roles, approvals
- Architected with WCAG 2.2 AA patterns in mind for keyboard and ARIA