Skip to content

IconButton

A square button for icon-only actions. The label is required and becomes the accessible name.

Example

<IconButton label="Search">
  <svg ...>...</svg>
</IconButton>
<IconButton label="Settings" variant="ghost" size="sm">
  <svg ...>...</svg>
</IconButton>

Props

PropTypeDefaultDescription
labelstring-Accessible name (required).
hrefstring-Renders a link; otherwise a button.
variantsecondary | ghostsecondaryVisual style.
sizesm | mdmdButton size.
disabledbooleanfalseDisabled state.

Accessibility