minimumInteractiveComponentSize
Common
Modifier in Material 3 Compose
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.
Last updated:
Installation
dependencies {
implementation("androidx.compose.material3:material3:1.3.0")
}
Overloads
@Stable
fun Modifier.minimumInteractiveComponentSize(): Modifier