Internal ID software / Surfaces
Actions
A row for the actions that share a moment, such as save and cancel.
Not drawn in Figma: built only from the tokens, for internal ID software. In code: components/software/actions.tsx. From the old system: Actions in @id-identity-as/ui.
Example
import { Actions } from '@/components/software/actions';
<Actions>
<Button type="submit">Gem ordren</Button>
<Button variant="outline">Annullér</Button>
</Actions>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
align | 'start' | 'end' | 'start' | End sets the actions at the end of the row, as in the foot of a dialog. |
Do
- One solid Button and the outline beside it.
- Put the primary action first.
Do not
- Do not stretch the buttons to the full width. Each keeps the width of its label.
- Do not put two solid buttons in one row.
Accessibility
- The order in the code is the tab order: primary first.
Tokens it uses
- space.inline.3