# CardHeader

The top of a card: what it is, and at most one thing to do with it.

Group: Surfaces. Code: `components/software/card.tsx`. From the old system: CardHeader in @id-identity-as/ui. Live: https://design.id-hub.dk/software/card-header

```tsx
import { Card, CardHeader } from '@/components/software/card';

<CardHeader title="Brugere" hint="12 aktive" action={<Link variant="block" href="/brugere">Se alle</Link>} />
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| title (required) | `string` |  | The name of what the card holds. |
| level | `2 \| 3 \| 4` | `3` | The heading level of the title in the outline of the page. |
| eyebrow | `string` |  | A short line above the title, such as "Ordre 41028". |
| hint | `string` |  | A short line under the title, such as who and when. |
| action | `ReactNode` |  | One control at the end of the header, such as a link or a button. |

Do:
- Keep the title to a few words. Heading names things.
- Set level so the title fits the outline around the card.

Do not:
- Do not put two actions in the header. The second belongs in the card.
- Do not write the eyebrow in capitals.

Accessibility:
- The title is a real heading, so the card lands in the outline of the page.

Tokens it uses:
- type.heading.md
- type.body.sm
- color.text.muted
- space.inline.1
- space.inline.3
- space.inline.4

---

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.
