Internal ID software / Status and waiting
PendingNote
A sentence that says a region is working, announced once.
Not drawn in Figma: built only from the tokens, for internal ID software. In code: components/software/waiting.tsx. From the old system: PendingNote in @id-identity-as/ui.
Example
Beregner totalen igen
Beregner totalen igen
import { PendingNote } from '@/components/software/waiting';
<PendingNote>Beregner totalen igen</PendingNote>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
children (required) | ReactNode | What is happening, as a sentence. |
Do
- Use it when the wait belongs to a region: a total, a count, a list.
- Say what is happening, not "Vent venligst".
Do not
- Do not use it as a full page loader.
- Do not disable a submit button while waiting: a disabled submit is left out of the form data. Set aria-busy on it instead.
Accessibility
- role="status": the sentence is read once when it appears and does not take focus.
- The icon stands still for a reader who asks for less motion.
Tokens it uses
- type.body.sm
- color.software.muted
- space.inline.2