Panel Nav
Titled sections of links with icon tiles, for a side panel.
The current page’s row is shaded and its icon tile filled. Section titles are small capitals.
Dependencies
What it's built from and what's built from it in Base, read from the imports in its source.
| Uses | Textprimitive |
|---|---|
| Used by | Nothing yet. |
| Packages | None. |
Installation
Set the project up for Base once first, as Getting started shows. Then add it with the CLI, or by hand.
With the CLI
Manually
Add the components it uses first, listed under Dependencies.
Then copy the source:
API reference
Generated from Base's types. Props marked ours are added here; the rest come from the ui-sdk part it wraps. Every part also accepts its element's native attributes.
PanelNav
The panel's navigation landmark. Name it with aria-label.
Takes the props of a native div.
PanelNavItem
A link, with its icon tile when it has an icon.
- activeours
Whether this is the page you're on.
Type boolean · Default false
- iconours
An icon, shown in a bordered tile. Leave it out for a compact row of text.
Type ReactNode
PanelNavSection
A titled group of links, ruled off from the next.
- title*ours
A short heading, shown small and in capitals.
Type ReactNode