An icon button runs an action that one well-known icon names on its own: close, menu, save, pause.
When to use
Header and row actions with a familiar glyph: "Close", "Menu", "More actions for {name}", "Save job".
Controls that float on busy surfaces: the Pause control of moving art and a carousel's pager arrows (outlined). Pagination under a table is not an icon button: its circles take an outline edge (Pagination, canonical §10.13).
A toggle that flips one thing about the item it sits on: "Save job" (a bookmark).
The main action of a view that has no words, such as a station's "Scan next" (filled; it is that view's one filled control).
The adornment inside a field: "Show password", "Clear search" (placed by the text field).
When not to use
Need
Use instead
An action whose icon is not universally known, or any main action that has words
Button with a label (and an optional leading icon)
Container. A 48×48 circle with a 1px border, transparent unless outlined (D-CAI-07, D-SEM-10).
State layer. A ::before of the icon color over the whole border box (inset: -1px, so no lighter rim shows inside the border), 8% on hover and 12% while pressed.
Icon. 24px (--size-icon-lg), outlined glyph (FILL 0); the filled glyph (FILL 1) while a toggle is on (D-BCP-33).
Tooltip. The plain tooltip repeating the button's name, on pointer rest and on keyboard focus.
Badge (optional). A count badge whose count is part of the name ("Filters, 1 filter on").
Variants
Variant
Class
Use for
Container
Icon
Border
standard (default)
oa-icon-btn
Header and row actions: menu, close, save, more
none
--color-on-surface-variant
transparent
filled
oa-icon-btn--filled
Only when the view's main action has no words; it counts as the view's one filled control
--color-primary
--color-on-primary
transparent
tonal
oa-icon-btn--tonal
An emphasized icon action beside quieter ones (a Material 3 default, not seen in the products yet)
--color-secondary-container
--color-on-secondary-container
transparent
outlined
oa-icon-btn--outlined
Floating on a busy surface: the Pause control, a carousel's pager arrows
none
--color-on-surface-variant
--color-outline-variant (border-outline-variant)
Toggles (standard and outlined only) carry [aria-pressed]. On: --color-primary-container with the --color-on-primary-container icon at FILL 1 and a transparent border. The filled glyph is the cue that does not depend on color (D-CAI-07, D-CAI-14).
The outlined button's hairline may be its only edge because the icon identifies it (V-2, D-ARC-13).
The pagination component owns its previous and next circles and their unavailable state.
Sizes
One size.
Size
Box
Padding
Type style
Icon
Hit area
default
48×48, --size-button-md (size-12)
none; the icon is centered
none
24px, --size-icon-lg
48px
Never a 40px circle with an invisible extender: the visible size is the target (D-CAI-07).
Inside a 56px field the button sits 4px from the inline end and from the top and bottom, and the input reserves 56px at its inline end (pe-14) (canonical §10.2, §10.4).
Pointer devices only: the layer at --opacity-state-hover over --duration-short-3--ease-standard; the tooltip appears after 500ms of rest.
Focus-visible
The base ring, a circle 2px outside the button; the tooltip shows at once. No focus layer (D-ARC-02).
Pressed
The layer at --opacity-state-pressed, at once.
Toggled on
[aria-pressed="true"]: the selected look and the filled glyph; the name does not change.
Disabled
Native [disabled]: the icon at 38%, filled and tonal containers at 12%, the outline at 12%, no layer. Rare.
Loading
None. An icon button that starts a slow task shows its progress beside what changes, as a spinner with words (Progress).
Error
None.
Behavior
A press runs the action at once. A toggle flips [aria-pressed] and applies at once ("Save job"); the name stays "Save job" in both states (D-CAI-07).
A control whose words change is not a toggle: the Pause control switches from "Pause animation" with pause to "Play animation" with play_arrow, and takes no pressed state (canonical §7.5, C-4).
Enter and Space press it. In a header it sits in the end cluster; on a card it sits above the stretched title link with position: relative and z-index: var(--z-raised) (Card).
Tooltip: after --duration-delay-tooltip of pointer rest, at once on keyboard focus; it stays while hovered and hides on Escape, blur, and pointer-out. The tooltip owns the script and placement (D-CSN-24).
Motion: only the layer and the colors change (--duration-short-3); nothing moves or scales (D-SEM-15).
Accessibility
Element and name.<button type="button" aria-label="…">, the name in the page language, the icon <span … aria-hidden="true" translate="no">. Never the title attribute alone (D-CAI-07, D-CSN-24).
Tooltip. The same words as the name, role="tooltip", tied with aria-describedby="…"; supplementary, never the only copy of anything essential.
Names in lists name the thing: "More actions for {name}" (canonical §10.13), "Save job: Frontend Developer (React)" (Global Jobs).
Target. 48×48 for every variant (D-LAY-12).
Contrast.on-surface-variant is 7.2:1 or more (light) and 5.4:1 or more (dark) on every surface; a standalone icon needs 3:1 (canonical §8.2). The ring is 5.45:1 or more.
Forced colors. The transparent border is drawn, so every variant keeps its circle; a pressed toggle keeps its filled glyph; disabled icons turn GrayText.
Reduced motion. Everything is instant.
RTL and languages
Icons that point mirror with oa-icon--mirror (arrow_back, chevron_right, north_east); close, menu, search, pause, and status glyphs never do (canonical §8.3).
Names are translated with the page: "Close" / "إغلاق" / "Fermer"; "Menu" / "القائمة" / "Menu"; "Close message" / "إغلاق الرسالة" / "Fermer le message".
Tooltips follow the direction and stay inside the window at a row's edges.
Content
The name is a short verb phrase or the destination, in sentence case: "Close", "Menu", "Save job", "Show password", "Pause animation", "Add a person".
When a name repeats on a page, add the thing it acts on: "Remove the passkey added 27 October 2026".
A toggle's name never flips ("Show password" stays "Show password"); the state is [aria-pressed].
Do and don't
Do
Don't
aria-label="Close" plus the tooltip "Close".
A title attribute as the only name.
A 48px circle with a 24px icon.
A 36 or 44px circle, or 22px icons.
A labeled button for "Install the app".
An icon-only button for an action people must guess.
[aria-pressed="true"] and the filled bookmark for "Save job".
Changing the name to "Unsave job" when it is on.
The outlined variant for the Pause control over moving art.
A filled orange icon button beside the view's filled button.
Code
HTML (reference CSS)
Variants and toggles, from reference/snippets/actions.html:
With its tooltip, from reference/snippets/overlays.html. The demo anchor (oa-tooltip__anchor--demo) shows the tooltip in place; in a product drop that modifier, start the tooltip with hidden and let the tooltip script show it:
The icon is the family Icon at text-(length:--size-icon-lg), filled while pressed ([font-variation-settings:'FILL'_1]). The Icon mirrors the pointing glyphs of its registry in RTL by itself; never decide it per use with rtl:-scale-x-100 (canonical §8.3). shadcn/ui: Button ghost at the icon size becomes the standard icon button (size-12 text-on-surface-variant); Toggle becomes the icon toggle (canonical §10.1, §2.12).
React
Prop
Type
Default
Description
icon
Material Symbols name
required
The glyph; filled while pressed. Pointing glyphs (arrow_back, chevron_right, north_east) mirror in RTL from the Icon's registry; there is no per-use switch (canonical §8.3).
label
string
required
The accessible name and the tooltip's words, in the page language.
variant
'standard' | 'filled' | 'tonal' | 'outlined'
'standard'
filled only for a wordless main action.
pressed
boolean
none
Makes it a toggle ([aria-pressed]); standard and outlined only.