Icon button

Icon buttons are controls that let users take action, make choices, and move forward.

Variants

The IconButton comes with four variants: primary (default), accent, secondary, and ghost.

Size

The IconButton comes with 5 sizes: 32, 36, 40 (default), 44, and 48.

Icons

Disabled

Use the disabled prop to prevent a button from being interacted with. Disabled buttons communicate that an action is currently unavailable.

Loading

Use the loading prop to indicate that an action is in progress. While loading, the button shows a spinner and cannot be interacted with.

Do not add disabled when using loading, as the button is automatically non-interactive while loading.

Rounded

Use the rounded prop to give the button fully rounded corners.

Icon button

Use the IconButton component to create a button that only shows an icon.