# Skeleton

A placeholder with the shape of the content that has not arrived yet.

Group: Status and waiting. Code: `components/software/waiting.tsx`. From the old system: Skeleton and SkeletonText in @id-identity-as/ui. Live: https://design.id-hub.dk/software/skeleton

```tsx
import { Skeleton, SkeletonText } from '@/components/software/waiting';

<div aria-busy="true">
  <Skeleton className="h-section-1 w-full" />
  <SkeletonText lines={3} />
</div>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| className | `string` |  | On Skeleton: the size of the block, with token utilities such as "h-section-1 w-full". |
| lines | `number` | `3` | On SkeletonText: how many lines the text will take. The last runs short. |

Do:
- Build the shape of the real content out of several skeletons.
- Set aria-busy="true" on the region that will receive the content.

Do not:
- Do not drop in one grey box for a whole page. A placeholder of the wrong size only postpones the jump.
- Do not show a skeleton for a wait under a second.

Accessibility:
- Hidden from screen readers; the region around it carries aria-busy.
- The pulse stops for a reader who asks for less motion.

Tokens it uses:
- color.border.default
- radius.sm
- space.inline.2
- space.inline.3

---

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.
