Icon button
Component preview
A compact button represented visually by an icon but still given its own stable accessible action name.
Build pack
Choose the task and destination. Technical names stay in English.
In your own words
Documented aliases: icon-only button, toolbar icon, symbol button
Try it
Compare all three behaviors
Shared comparison scenario:
This context stays fixed. Switch concepts to observe the mission, edge case, and specimen specific to each behavior.
Icon button
Icon button performs an action like Button but omits visible text; Link still requires a real navigation destination.
Your task
Reach Copy with Tab, hear its name, activate with Space, then reveal its supplementary tooltip.
Edge case to verify
When the icon cannot load, the accessible name and button target remain intact and the action is still understandable to assistive technology.
Mission
Reach Copy with Tab, hear its name, activate with Space, then reveal its supplementary tooltip.
pnpm test
Select a marker directly on the specimen, or use the list below, to see its role. Hide the markers to operate the lab without obstruction.
Control
The interactive element that receives input and exposes state.
Run an action
Pointer, Enter, or Space activation runs one named action exactly once.
Reveal on focus or hover
Pointer hover or keyboard focus reveals the information after a short delay.
Copy code ready
Copy code ready
Code copied
Code copied
Copy code ready → Code copied
Enter, Space, pointer, or touch activates the named Copy code button.
Code copied → Copy code ready
The transient copied confirmation ends or the replayable specimen is reset.
button[type=button] with accessible name
Equivalence caveat: The icon may be decorative, but the button needs its own stable accessible name; a tooltip is supplementary only.
Verify binding sourceWHATWG · standard · 2026-07-16
Claim covered: Icon button: native button types, activation, disabled state, and form behavior.
W3C WAI · standard · 2026-07-16
Claim covered: Icon button: button naming, activation semantics, and Enter or Space keyboard behavior.
Verified on 2026-07-16 · rev. 1