In Review

Icon Button

An Icon Button is a button that uses an icon instead of text to represent an action, like a thumbs-up for "like" or a trash can for "delete." It’s commonly used in places where space is limited, such as toolbars or mobile interfaces.

Icon buttons are ideal for quick, easily recognised actions, but they rely on familiar icons to avoid confusion. They work best when users can immediately understand the action without additional labels.

Variants

Default

<button
  data-element="icon-button-container"
  data-module="gieds-icon-button"
  data-testid="govieIconButton-default-primary-medium-notDisabled"
  class="gi-btn gi-btn-primary gi-icon-btn-regular">
  <span
    data-testid="govie-icon"    
    role="presentation"
    class="
      material-icons
      gi-block
      gi-text-[16px]">
    thumb_up
  </span>
</button>
{{ govieIconButton({
  "icon": {
    "icon": "thumb_up"
  }
}) }}

import { IconButton } from "@govie-ds/react";

<IconButton
  icon={{
    icon: 'thumb_up'
  }}
  onClick={() => {}}
/>

Usage

Best Practices

When to use this component

When not to use this component

Status

Figma Library
Considering
Local HTML
Stable
Global HTML
Beta
Global React
Beta