IconButton
Icon button
Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.
Icon buttons allow users to take actions, and make choices, with a single tap. Icon buttons can take the form of a primary, secondary, tertiary, or ghost variant but most commonly will be styled as primary or ghost buttons.
(From Button documentation)
Parameters
Icon painter to be displayed in the button.
Callback invoked when the button is clicked.
The modifier to be applied to the button.
A ButtonType that defines the button's type.
A ButtonSize that defines the button's size.
Whether the button is enabled or disabled.
The MutableInteractionSource that keeps track of the button's state.
See also
Icon button
Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.
Icon buttons allow users to take actions, and make choices, with a single tap. Icon buttons can take the form of a primary, secondary, tertiary, or ghost variant but most commonly will be styled as primary or ghost buttons.
This variant of the icon button uses Carbon's TooltipBox to display a tooltip when the user hovers over or focuses it.
(From Button documentation)
Parameters
Icon painter to be displayed in the button.
Parameters to configure the tooltip.
Callback invoked when the button is clicked.
The modifier to be applied to the button.
The modifier to be applied to the tooltip.
A ButtonType that defines the button's type.
A ButtonSize that defines the button's size.
Whether the button is enabled or disabled.
The MutableInteractionSource that keeps track of the button's state.