IconButton🔗

IconButtons are used to visually distinguish an Icon as an element that the user can interact with to effect a change. For example, a close button on a Dialog.

The IconButton is complete with all requisite DLS base, accessibility and interaction styling and should not be visually altered or extended.

Basic Example🔗

Size🔗

IconButtons render visually at 40px x 40px but with a 44px x 44px touch target area for WCAG21 compliance. The icon itself is 24px x 24px.

Variant🔗

There are two IconButton variants. The default variant is filled.

Intent🔗

Intent defines what kind of action the icon button is used for, it's appearance will change based on the intent. The default intent is primary. The secondary intent is intended for rendering IconButtons on a secondary background.

Disabled🔗

Icon Buttons that are disabled can't be interacted with. The visual style of the button also changes to indicate to the user that the buttons are in a disabled state.

Props - IconButton🔗

Name
Description
Type
Default Value