Skip to content

Sidebar

Keep the header and search in place while the list scrolls.

alpina-ui/portal/sidebar

Interactive preview

Contents
English edition

Usage notes

Compose SideNav and SideNavLink for a list of routes. Set active on the current page and use asChild to supply your router link. Keep navigation labels meaningful on their own. The scrollable index leaves space around focused entries, and long masthead or footer text can wrap.

When to use

Provide persistent section navigation beside a set of related workspaces or reference pages.

When to avoid

Use a short row of navigation links if there are only a few destinations and they already fit in the header.

Accessibility

Name the navigation region and mark the current destination. Make the mobile opener describe what it reveals and support a return to the page.

Keys
KeyAction
Tab / Shift+TabMove through any links or controls supplied inside the component, in document order.

Content

Group related destinations under a short heading. Use the same nouns that readers will see as page titles.

Use
Billing: Invoices, Credit notes
Avoid
Administration: Area 1, Area 2

Copy in four languages

German
Abrechnung10 characters
French
Facturation11 characters
Italian
Fatturazione12 characters
Romansh
Facturaziun11 characters
Add to your project
npx --no-install alpina add sidebar