Nav
The list of the product’s places, with the current place marked.
On this page
Playground
Icons
Groups
Background
<nav class="feitio-nav" aria-label="Main"><div class="group"><p class="group-title">Work</p><ul><li><a href="#playground" aria-current="page">Schedules</a></li><li><a href="#playground">Tasks</a></li></ul></div></nav>When to use
- Inside AppShell or DocPage, for the main places. Up to about seven entries per group.
When not to use
- For actions ("New schedule"): a Button, in the content.
- For the steps of a flow: the count in the content ("Step 2 of 3").
Examples
With groups
The current place is placed paper: background, ink line and bold. Three signals, none color alone.
Show code
<div class="feitio-nav">
<div class="group">
<p class="group-title" id="g-trabalho">Trabalho</p>
<ul aria-labelledby="g-trabalho">
<li><a href="/agendamentos" aria-current="page">…Agendamentos</a></li>
<li><a href="/tarefas">…Tarefas</a></li>
</ul>
</div>
</div>Anatomy
- Group title, optional: when there is more than one group.
- Current place: placed paper, ink line and bold.
- Other places: underline on hover.
Do and don’t
Writing
- The place’s name, as a noun, the same as the title of the screen it opens.
Accessibility
- A named
<nav>; the current place witharia-current="page". - With groups, each list takes the group title as its name.
Attributes
| Attribute | Values | What for |
|---|---|---|
class="feitio-nav" | required | Groups space-5 apart. |
class="group", "group-title" | optional | A titled group. |
aria-current="page" | on the current place | Placed paper, ink line and bold. |