# Heading

A heading where the level in the outline and the text style are two decisions.

Group: Text. Code: `components/software/typography.tsx`. From the old system: Heading and Eyebrow in @id-identity-as/ui/layout. Live: https://design.id-hub.dk/software/heading

```tsx
import { Heading } from '@/components/software/typography';

<Heading level={1}>Ordrer</Heading>
<Heading level={2} size="heading-md">Afventer godkendelse</Heading>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| level (required) | `1 \| 2 \| 3 \| 4 \| 5 \| 6` |  | The level in the outline of the page: 1 for the page title, 2 for a section. |
| size | `'display-xl' \| 'display-lg' \| 'display-md' \| 'display-sm' \| 'heading-md' \| 'heading-sm'` |  | The Figma text style. Without it: display-md for level 1, display-sm for 2, heading-md for 3, heading-sm below. |
| id | `string` |  | For aria-labelledby on the region the heading names. |

Do:
- Choose the level from the outline, then the size from what the page needs.
- One level 1 per page.
- In a dense tool, set the page title in display-sm and the sections in heading-md.

Do not:
- Do not pick h3 because h2 looked too big. Keep the level and change the size.
- Do not set a heading in capitals or in a colour. The old eyebrow in mono capitals is gone.

Accessibility:
- The level is what a screen reader navigates by. Do not skip one.

Tokens it uses:
- type.display.xl
- type.display.lg
- type.display.md
- type.display.sm
- type.heading.md
- type.heading.sm

---

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.
