Button
Triggers an action or event.
01Anatomy
5 parts. Select a number or a name to see what each part does.
01 · Container
The clickable surface. It holds the content and gives the button its shape, target area and visual weight.
- Required
- Yes
- Recommended
- Common pattern: a target of at least 44 × 44 px on touch, even when the visible shape is smaller.
02 · Leading icon
A symbol before the label that supports it, like a download arrow next to Save.
- Required
- No
- When
- Optional when the label is clear on its own.
- Recommended
- Add meaning, not decoration. Usually one icon per button: leading or trailing.
03 · Label
Communicates the action that will occur when the user activates the button.
- Required
- Yes
- When
- Usually required. Only an icon-only button drops it, and then it needs an accessible name.
- Recommended
- Use a short, action-oriented label: a verb, two or three words at most.
04 · Trailing icon
A symbol after the label: it points to a direction (an arrow) or says that something opens (a chevron).
- Required
- No
- When
- Only when the action moves you forward or opens a menu.
- Recommended
- Don’t pair it with a leading icon: one icon is enough.
05 · Spinner
Replaces the icon, or sits next to the label, while an asynchronous action runs.
- Required
- Only in some cases
- When
- Only while the action is in progress.
- Recommended
- Keep the width stable so the layout doesn’t jump. Whether the label stays visible varies by design system.
Shares its area with Leading icon.
Example spacing, measured on this drawing (16 px = 1 em). A common implementation, not a rule: values change from system to system. W and H are width and height, as in Figma: Hug follows the content, Fill takes the space of the parent.
Spacing is measured on the normal view: switch back to Normal to show it.
02Structure
- Buttoncomponent set
- Containerauto layouthorizontalhugpadding V 12H 20
- Contentauto layoutgap 8
- Leading iconinstanceboolean
- Labeltext
- Trailing iconinstanceboolean
| Property | Type | Values |
|---|---|---|
| Variant | Variant | PrimarySecondaryGhost |
| Size | Variant | SmallMediumLarge |
| State | Variant | DefaultHoverFocusPressedDisabledLoading |
| Leading icon | Boolean | truefalse |
| Trailing icon | Boolean | truefalse |
| Icon swap | Instance swap | any 16 or 20 px icon |
| Label | Text | “Save” |
03States
04Variants
There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.
Proven methods for designing interfaces with AI. Every two weeks, in Italian.
Subscribe