by @alexstyl
✉️ Leave your feedback

← Back to Compose Multiplatform

minimumInteractiveComponentSize

Modifier
in
Compose Multiplatform
. Since 1.4.0-rc01

Overview

Examples

Community Notes

Reserves at least 48.dp in size to disambiguate touch interactions if the element would measure smaller.

https://m3.material.io/foundations/accessible-design/accessibility-basics#28032e45-c598-450c-b355-f9fe737b1cd8

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