Actions · 5 parts · 6 states · Basic

Button

Triggers an action or event.

01Anatomy

Save

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.

02Structure

  • Buttoncomponent set
  • Containerauto layouthorizontalhugpadding V 12H 20
  • Contentauto layoutgap 8
  • Leading iconinstanceboolean
  • Labeltext
  • Trailing iconinstanceboolean
Structure
PropertyTypeValues
VariantVariantPrimarySecondaryGhost
SizeVariantSmallMediumLarge
StateVariantDefaultHoverFocusPressedDisabledLoading
Leading iconBooleantruefalse
Trailing iconBooleantruefalse
Icon swapInstance swapany 16 or 20 px icon
LabelText“Save”

03States

DefaultReady to be activated.
HoverThe pointer is over it. A small change in fill confirms it is interactive. Touch screens don’t have it.
FocusReached with the keyboard. A visible ring shows where you are.
PressedBeing activated, between press and release.
DisabledNot available right now. With native disabled it can’t be focused either, so explain why nearby.
LoadingThe action has started and the result isn’t ready. A second click does nothing.

04Variants

PrimaryThe main action of a view. Usually one per area.
SecondaryAlternative actions next to the primary one.
Tertiary / GhostLow emphasis, for toolbars and dense layouts.
Icon-onlyOnly an icon. It still needs an accessible name. See Icon Button.

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.

Fuori Frame

Proven methods for designing interfaces with AI. Every two weeks, in Italian.

Subscribe