Theme
Side nav
A vertical list of links in sections.
Examples
Props
SideNav
A vertical list of links in sections, for an app's or a document's sidebar.
| Prop | Type | Default | Description |
|---|---|---|---|
linkAs? | ElementType | "a" | The component that renders links: a framework's client-side link, or a plain anchor. The system itself knows no router. |
label | string | — | Names the navigation landmark. |
sections | readonly SideNavSection[] | — | |
currentHref? | string | — | The current page's address; its link is marked aria-current. |
Accessibility
- A named navigation landmark; each section's list is labelled by its title; the current page is aria-current.