LocalMinimumTouchTargetEnforcement

Property

Common

Deprecated Use LocalMinimumInteractiveComponentEnforcement instead.

@ExperimentalMaterialApi
@Deprecated(
message = "Use  instead.",
replaceWith = ReplaceWith(""),
level = DeprecationLevel.WARNING,
)
val LocalMinimumTouchTargetEnforcement: ProvidableCompositionLocal<Boolean>

CompositionLocal that configures whether Material components that have a visual size that is lower than the minimum touch target size for accessibility (such as Button) will include extra space outside the component to ensure that they are accessible. If set to false there will be no extra space, and so it is possible that if the component is placed near the edge of a layout / near to another component without any padding, there will not be enough space for an accessible touch target.