androidx.compose.material3

FilledTonalIconButton

Composable function

One of the icon button types. It works like IconButton. Only the parameters that differ are described here.

An icon button with a light fill.

A tonal icon button
A tonal icon button
FilledTonalIconButton(onClick = {}) { Icon(Icons.Filled.Edit, contentDescription = "Edit") }

Basic

Takes one shape.

@Composable
fun FilledTonalIconButton(
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    shape: Shape = IconButtonDefaults.filledShape,
    colors: IconButtonColors = IconButtonDefaults.filledTonalIconButtonColors(),
    interactionSource: MutableInteractionSource? = null,
    content: @Composable () -> Unit,
)

Defaults that differ from IconButton:

Same as in IconButton: onClick, modifier, enabled, shape, colors, interactionSource, content.

ExpressiveSince 1.10

Takes shapes: one shape at rest and one while pressed.

@Composable
fun FilledTonalIconButton(
    onClick: () -> Unit,
    shapes: IconButtonShapes,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: IconButtonColors = IconButtonDefaults.filledTonalIconButtonColors(),
    interactionSource: MutableInteractionSource? = null,
    content: @Composable () -> Unit,
)

Defaults that differ from IconButton:

Same as in IconButton: onClick, shapes, modifier, enabled, colors, interactionSource, content.

Icon button types

See also