Emphasis
Size
Small
Default
Large
Choose an action to see its result.
A compact action with an Iconoir symbol and a clear text alternative.
Su uses the Quiet instrument direction. Use the mode switcher above to see light and dark.
Emphasis
Size
Choose an action to see its result.
| Prop | Values | Default |
|---|---|---|
| icon | Iconoir component | required |
| aria-label | string | required |
| variant | primary | secondary | quiet | secondary |
| size | small | default | large | default |
| disabled | boolean | false |
| className | wrapper layout classes | — |
| button props | native attributes and event handlers | — |
import { IconButton } from '@zao/react';
import { Settings } from 'iconoir-react';
<IconButton icon={Settings} aria-label="Open settings" />The required aria-label names the native button. The icon is hidden from assistive technology. The tooltip appears on hover or keyboard focus, can be hovered, and closes on Escape. Disabled buttons skip the tab order and do not activate. Keyboard focus and the hit area stay fixed while the face moves; reduced motion keeps the face stationary.