API reference

TextTileButton Composable

A selectable tile with stacked text and an optional icon.
The visual dimensions follow the active UISet density while its selection semantics and touch target remain accessible.

Signature

@Composable
fun TextTileButton(
    label: String,
    onSelectionChange: (Boolean) -> Unit,
    modifier: Modifier = Modifier,
    secondaryLabel: String? = null,
    enabled: Boolean = true,
    selected: Boolean = false,
    icon: @Composable () -> Unit? = null,
    colors: SelectableButtonColors = SelectableButtonDefaults.Colors,
    dimensions: ButtonDimensions = UiSetTheme.dimensions.buttons,
    shape: Shape = UiSetTheme.shapes.buttonTile,
    interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
    indication: UiSetIndicationSpec? = UiSetTheme.indications.standard.default,
)

Parameters

label: String primary tile label
onSelectionChange: (Boolean) -> Unit callback receiving the requested selection state
modifier: Modifier modifier applied to the tile
secondaryLabel: String? optional supporting label
enabled: Boolean whether the tile accepts input
selected: Boolean whether the tile is selected
icon: (@Composable () -> Unit)? optional icon shown above the labels
colors: SelectableButtonColors selected, unselected, and disabled colors
dimensions: ButtonDimensions tile size, padding, and icon geometry
shape: Shape tile background and clipping shape
interactionSource: MutableInteractionSource interaction stream shared with callers observing state
indication: UiSetIndicationSpec? interaction feedback split around the tile clipping boundary