StylishFilledIconToggleButton

fun StylishFilledIconToggleButton(checked: Boolean, onCheckedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, shape: Shape = IconButtonDefaults.filledShape, colors: IconToggleButtonColors = IconButtonDefaults.filledIconToggleButtonColors(), interactionSource: MutableInteractionSource? = null, content: @Composable () -> Unit)

A filled icon toggle button with a primary-container background, wrapping the Material 3 FilledIconToggleButton with the theme's default colors.

Use this for high-emphasis toggle actions such as a pinned item. content should typically be an Icon that changes with checked; the button enforces a 48 x 48 dp minimum touch target.

Parameters

checked

Whether the button is currently toggled on.

onCheckedChange

Called with the new state when the button is tapped.

modifier

Modifier applied to the button root.

enabled

When false, the button ignores pointer input and renders in the disabled color scheme.

shape

Shape of the button's container. Defaults to IconButtonDefaults.filledShape.

colors

Colors used in each state. Defaults to IconButtonDefaults.filledIconToggleButtonColors.

interactionSource

The MutableInteractionSource for the button, used to observe press/focus/hover interactions. When null, an internal one is remembered.

content

The content of the button, typically an Icon.

See also