# Link

A link that looks like one: underlined inside a sentence, plain when it stands alone.

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

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

<Text>Se <Link href="/ordrer/41028">ordre 41028</Link> for detaljer.</Text>
<Link variant="block" as={NextLink} href="/ordrer">Alle ordrer</Link>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| variant | `'inline' \| 'block'` | `'inline'` | Inline is a link in a sentence, underlined. Block is a link on its own, such as a row in a list, underlined on hover. |
| as | `ElementType` | `'a'` | The element to render, such as the link of the framework. |
| ...anchor | `AnchorHTMLAttributes` |  | Everything a native anchor takes: href, target, rel. |

Do:
- Use it for navigation. An action that changes something is a Button.
- Write the link text so it says where it leads: "ordre 41028", not "klik her".

Do not:
- Do not colour a link. It is the text colour, and never Flare.
- Do not remove the underline from a link in a sentence.

Accessibility:
- Links in running text are underlined: colour alone does not tell a link from the words around it.
- Focus shows the ring in the text colour.

Tokens it uses:
- color.text.default

---

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.
