← Back to Compose Multiplatform
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.
@OptIn(ExperimentalMaterial3Api::class) fun Modifier.minimumInteractiveComponentSize()
@OptIn(ExperimentalMaterialApi::class) fun Modifier.minimumInteractiveComponentSize()