← Back to Compose Multiplatform
minimumInteractiveComponentSize
Modifier
in
Compose Multiplatform
. Since 1.4.0-rc01Overview
Examples
Community Notes
Reserves at least 48.dp in size to disambiguate touch interactions if the element would measure smaller.
This uses the Material recommended minimum size of 48.dp x 48.dp, which may not the same as the system enforced minimum size. The minimum clickable / touch target size (48.dp by default) is controlled by the system via ViewConfiguration` and automatically expanded at the touch input layer.
This modifier is not needed for touch target expansion to happen. It only affects layout, to make sure there is adequate space for touch target expansion.
Overloads
minimumInteractiveComponentSize
@OptIn(ExperimentalMaterial3Api::class)
fun Modifier.minimumInteractiveComponentSize()
minimumInteractiveComponentSize
@OptIn(ExperimentalMaterialApi::class)
fun Modifier.minimumInteractiveComponentSize()
Next ComponentAssistChip →
