Stylish Icon Toggle Button
A standard icon toggle button that switches between a checked and an unchecked state, wrapping the Material 3 IconToggleButton with the theme's default colors.
Use this for single-select actions that stay active, such as a favorite or bookmark toggle. content should typically be an Icon that changes with checked (e.g. filled vs. outlined); the button enforces a 48 x 48 dp minimum touch target.
Parameters
Whether the button is currently toggled on.
Called with the new state when the button is tapped.
Modifier applied to the button root.
When false, the button ignores pointer input and renders in the disabled color scheme.
Colors used in each state. Defaults to IconButtonDefaults.iconToggleButtonColors.
The MutableInteractionSource for the button, used to observe press/focus/hover interactions. When null, an internal one is remembered.
Shape of the button's container. Defaults to IconButtonDefaults.standardShape.
The content of the button, typically an Icon.