Components / Sidebar

Sidebar

A collapsible desktop navigation and responsive mobile drawer.

example.component.html
html
<aevko-sidebar label="Workspace">
  <a routerLink="/home">
    Home
  </a>
</aevko-sidebar>

Installation

npx aevko-ui@latest add sidebar --yes

Source ownership

Customization

Compose header, links and footer from product content. Mobile, collapse and icon treatments remain editable in the installed template and stylesheet.

Edit locallyThe installed template and stylesheet are application code, not a black box.
Theme semanticallyOverride --aevko-* tokens or ordinary classes without !important.
Compose freelySlots accept native elements, SVG, images or Angular components.

API reference

Property or slotTypeDefaultDescription
labelstring'Primary navigation'Accessible name for the navigation and panel.
openmodel<boolean>falseResponsive drawer state.
collapsedmodel<boolean>falseDesktop collapsed state.
closeOnNavigatebooleantrueCloses the mobile drawer after projected navigation is used.
aevkoSidebarHeader / Footerprojected slotsemptyPersistent content around navigation.
aevkoSidebarMenuIconprojected slotinline SVGReplaces the mobile menu icon.
aevkoSidebarExpandIconprojected slotinline SVGReplaces the expand icon.
aevkoSidebarCollapseIconprojected slotinline SVGReplaces the collapse icon.

Accessibility contract

Accessibility

Included behavior

  • The mobile trigger exposes expanded state, Escape closes the drawer and navigation keeps a visible label.

Your responsibility

Provide descriptive navigation text, identify the current route and keep projected links keyboard reachable.

Back to all components