Side Navigation
Organize related pages in a hierarchy and show the current page with side navigation.
Examples
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024pxside-navigation-demo.tsx
Component API
Build a nested side navigation with List, ListItem, and Link. Items renders nested lists from an item tree.
Root<nav>
Set a navigation label when the page has multiple navigation landmarks.
List<ul>
Nest another List inside ListItem for child destinations.
ListItem<li>
Contains a link and optional nested List.
Link<a>
Set href to the destination and isCurrent for the active page.
| Prop | Type | Description |
|---|---|---|
isCurrent | boolean | Marks this link as the current page. |
Items
Renders nested lists from item data.
| Prop | Type | Description |
|---|---|---|
items | SideNavigationItem[] (required) | Tree of labels, hrefs, current-page flags, and child items. |
Accessibility
Give Root a useful navigation label when the page has more than one navigation landmark.