minimumInteractiveComponentSize
Functions summary
Modifier |
Reserves at least 48.dp in size to disambiguate touch interactions if the element would measure smaller. |
Functions
Modifier.minimumInteractiveComponentSize
fun Modifier.minimumInteractiveComponentSize(): Modifier
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.
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.