Skip to content
NavigationBrowse navigation components
ComponentsNavigationStable

Sidebar

App-shell side navigation with sections, active state, and compact variant.

Live preview

Usage

Adapters:React stableVue stable
index.html
<nav class="lm-sidebar" aria-label="Primary">
  <a class="lm-sidebar-item" aria-current="page">Dashboard</a>
</nav>

CSS classes (4)

ClassDescription
lm-sidebarVertical nav
lm-sidebar-sectionUppercase section header
lm-sidebar-itemEach link/button
lm-sidebar-compactNarrow icon-only variant

React props (1)

PropTypeDefaultDescription
compactboolean

Accessibility

  • Wrap in <nav aria-label='Primary'>.
  • Active link: aria-current='page'.

Spotted something wrong? Edit this entry on GitHub.