Internal ID software / Status and waiting
Callout
A note that belongs to the content around it: a condition, a reminder, a source.
Not drawn in Figma: built only from the tokens, for internal ID software. In code: components/software/message.tsx. From the old system: Callout in @id-identity-as/ui/data (five coloured variants, now two).
Example
Kræver godkendelse
To ordrelinjer overstiger budgettet for afdelingen.
Eksempeldata
Alle tal på siden er eksempler, ikke en rapport.
En tint i sidens lead-familie.
Kræver godkendelse
To ordrelinjer overstiger budgettet for afdelingen.
Eksempeldata
Alle tal på siden er eksempler, ikke en rapport.
En tint i sidens lead-familie.
import { Callout } from '@/components/software/message';
<Callout title="Kræver godkendelse">To ordrelinjer overstiger budgettet for afdelingen.</Callout>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
title | string | A short heading for the note. | |
variant | 'outline' | 'tint' | 'outline' | Outline is a hairline box. Tint is a light ground with Ink text. |
family | ColourFamily | The colour family of a tint. Without it the tint is Mist. |
Do
- Use it for something the reader should know before going on.
- Say what kind of note it is in the title: "Kræver godkendelse".
Do not
- Do not use it for the outcome of an action. That is FlashMessage.
- Do not rely on a tint to say warning or error. Say it in the title.
- Do not stack several callouts. If everything is a note, nothing is.
Accessibility
- role="note": part of the page from the start, not announced on its own.
Tokens it uses
- color.border.default
- color.text.default
- color.neutral.200
- color.neutral.900
- radius.sm
- type.heading.md
- type.body.md
- space.inline.1
- space.inline.4