Skip to content
Theme

Icon button

A button showing only an icon. Its label is a required prop.

Examples

Labelled for screen readers

Props

IconButton

A button showing only an icon. Its label is required, because the icon is not text.

PropTypeDefaultDescription
labelstring—What the button does, read by screen readers: the icon alone says nothing to them.
variant?ButtonVariant"quiet"
size?"sm" | "md""md"
childrenReactNode—The icon, from

Also takes 109 props it passes to the underlying React Aria component or element (events, ARIA attributes, state such as isDisabled), documented by React Aria.

Keyboard

KeyDoes
Enter or SpacePresses the button
TabMoves focus to the next control

Accessibility

  • The label becomes aria-label; pair it with a Tooltip so sighted users get it too.