Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Components
  2. Icon Button
  3. API and Development

Icon Button

API and Development

View Source
Submit Issue

IconButton is used to perform actions through icon-only buttons, providing a compact interface for common interactions without text labels. It provides a consistent way to render icon-based actions throughout the interface. Built as a wrapper around the standard Button component, it combines an icon with an integrated tooltip, ensuring accessibility while maintaining a minimal visual footprint.

Props

NameDefaultDescription
iconrequiredThe SVG asset for the icon to display in the button.
titlerequiredThe title text for the button, displayed in the tooltip and used for accessibility.
typeButtonType.SecondaryEnum for button appearance variants. Other variations of ButtonType include Critical | Primary | Secondary | SecondaryAlt | Link | Success | Destructive.
sizeIconButtonSize.RegularSmall, Regular, or Large. Aliased to ButtonSize in code.
pillfalseOpt in to a fully rounded (pill / circular) border radius. Intended for floating toolbars and FAB-style controls. Combine with cornerStyle={ComponentCornerStyle.Sharp} to override back to square corners.
disabledfalseWhether the button is disabled.
onClickFunction to call on click.
onMouseEnterFunction to call on mouse enter.
onMouseLeaveFunction to call on mouse leave.
onMouseDownFunction to call on mouse down.
onMouseUpFunction to call on mouse up.
classNameAdditional CSS classes to apply.
togglefalseNon-link only. Opt in to sustained aria-pressed via standalone Radix Toggle (asChild). Inherited from Button.
pressed / defaultPressed / onPressedChangeNon-link only. Controlled or uncontrolled pressed state when toggle is true. Link IconButton strips these props before spreading onto the DOM.

Critical

Use for important icon actions that change significant product state, allowing one critical button per page.

Primary

Use for the most important icon action on a page or within a specific section.

Secondary

Use for standard icon actions throughout the interface.

Pill

Pass the pill prop to opt in to a fully rounded (pill / circular) border radius. Intended for floating toolbars and FAB-style controls such as the staff panel toggle. pill works with any ButtonType; combine with cornerStyle={ComponentCornerStyle.Sharp} to override back to square corners when a brand or layout requires it.

Secondary Alt

Use for icon actions of lesser importance when differentiating from primary actions.

Link

Use for icon buttons that function as navigation links or subtle actions.

Semantic Types

Semantic icon buttons give users visual cues about their purpose through color.

Success

Use to indicate constructive icon actions or confirmations of positive states.

Destructive

Use to indicate destructive icon actions such as deleting or removing content.

Sizes

IconButton shares the same three sizes as Button for consistent density.

Disabled State

Use for unavailable actions, ensuring the tooltip explains why the action is unavailable.

Common Icon Actions

Use appropriate icons for standard actions to maintain consistency.

Add Actions

Edit Actions

Delete Actions

More Options

Close or Dismiss

Search

Navigation

Icon Button Groups

Use to group related icon actions together for logical organization.

Table Row Actions

Use in table rows to provide contextual actions for each item.

With Conditional States

Use to show different icons or states based on application logic.

Previous

Icon Button / Usage

Next

Icon Button / Accessibility

On this page

Props
Critical
Primary
Secondary
Pill
Secondary Alt
Link
Semantic Types
Success
Destructive
Sizes
Disabled State
Common Icon Actions
Add Actions
Edit Actions
Delete Actions
More Options
Close or Dismiss
Search
Navigation
Icon Button Groups
Table Row Actions
With Conditional States