On this page
Overview
Show code, FormActions.tsx
Variants
Justify
Where the row has room to spare, its children sit at the start, in the center, at the end, or spread to the edges, such as a heading and its action.
Gaps
The gap between the children is a step of the spacing scale.
- Step 2
A label and its badge.
- Step 3
A toolbar's controls.
- Step 4
Actions, such as a form's.
Behaviour
Adapting to width
A row that wraps runs onto more lines; it never turns into a column by itself; change the layout at a window class for that.
Show code, SectionHeading.tsx
Rules
A row that may get narrow wraps, so its children keep their shape.
Use it when
- A few actions that belong together, such as Cancel and Save
- A heading and its actions on one line
- Small items side by side, such as a label and a badge
Show code, WrappingActions.tsx
Show code, SqueezedActions.tsx
Alignment
Center controls of different heights on their line, such as a heading and a small button.