Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zendeskgarden/website/llms.txt
Use this file to discover all available pages before exploring further.
Installation
When to use
Use an Icon button:- To simplify the appearance of repeated or persistent actions on a page
- To enable action in a toolbar where space is limited
- To enable primary or secondary actions on a page — use a Button instead, which provides a visible label
Usage
Default
Wrap theIconButton in a Tooltip and always provide an aria-label that describes the action. This ensures the button is accessible to screen reader users and users unfamiliar with the icon.
Danger
Use danger styling for icon buttons that enable a destructive action.Disabled
A disabled Icon button prevents user interaction. It does not appear in the tab order, cannot receive focus, and may not be read aloud by a screen reader.Shape
Icon buttons are circular by default. SetisRound={false} to use a square shape.
Sizes
Icon buttons can be small, medium, or large. The default size is medium.Types
Icon buttons have three visual types: basic (default), outline, and primary.Accessibility
Pair eachIconButton with a Tooltip so that users unfamiliar with the icon can discover its function by hovering or focusing the button.
API
TheIconButton component follows this structure:
IconButton props
Accessible label for the button. Required for screen reader support.
Applies filled primary styling.
Applies basic (no border, no background) styling. This is the default.
Applies danger (destructive action) styling.
Renders the button as a circle. Set to
false for a square shape.Controls the button’s size.
Prevents user interaction and applies disabled styling.