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.
<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={() => {}} />
Icon Button
component for actions that are represented clearly by an icon alone, such as a thumbs-up for liking, a heart for favoriting, or a star for bookmarking.Icon Button
when the icon alone doesn’t clearly convey the intended action. In such cases, a text label or a standard button may be more effective.Icon Button
components in isolation if screen readers or visually impaired users may have difficulty interpreting the icon's function.Figma Library | Considering |
Local HTML | Stable |
Global HTML | Beta |
Global React | Beta |