# Navigation

The way around an app: a named list of links with the current page marked.

Group: Navigation. Code: `components/software/navigation.tsx`. From the old system: Navigation in @id-identity-as/ui/chrome (the list of links, without the public site chrome). Live: https://design.id-hub.dk/software/navigation

```tsx
import { Navigation } from '@/components/software/navigation';

<Navigation
  label="Hovedmenu"
  items={[
    { href: '/ordrer', label: 'Ordrer', current: true },
    { href: '/brugere', label: 'Brugere' },
  ]}
/>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| label (required) | `string` |  | The name of the navigation, read aloud. |
| items (required) | `NavigationItem[]` |  | { href, label, current? }. current marks the page the reader is on. |
| orientation | `'vertical' \| 'horizontal'` | `'vertical'` | Vertical is a list down the side of an app. Horizontal is a row that wraps. |
| as | `ElementType` | `'a'` | The element to render a link with. |

Do:
- Name every navigation: "Hovedmenu", "Indstillinger".
- Set it in the first two or three columns of the grid, with the page in the rest.
- On a phone, put a vertical navigation in a Drawer.

Do not:
- Do not mark the current page with a colour. It is underlined and set in the heading weight.
- Do not use it for the public site. Its navigation and footer wait for Figma.

Accessibility:
- The current page has aria-current="page".
- Two navigations on one page have two different names.

Tokens it uses:
- color.text.default
- type.body.md
- type.heading.md
- space.inline.2
- space.inline.3
- space.inline.5

---

Not drawn in Figma. Kasper decided on 20 November 2026 that internal software gets this set now, built only from the tokens. The look is ours until Peter draws it, and every open choice is a question in docs/SPOERGSMAAL-TIL-PETER.md. The public site, campaigns and brand surfaces use only the components drawn in Figma.

The rules for this set and all 33 components: https://design.id-hub.dk/software.md. Token values: https://design.id-hub.dk/tokens.md.

Index of everything, as text: https://design.id-hub.dk/llms.txt. Never invent a colour, a size, a component or a product fact: if it is not here, it does not exist yet.
