Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

minSize

Constrains the minimum size (width and height) of the component.

minSize

Source set: Common
@ExperimentalFoundationStyleApi
fun MinSizeScope.minSize(size: DpSize)

Constrains the minimum size (width and height) of the component. The component's dimensions, including padding, will be at least these values.

This property is not inherited

Parameters

size The minimum size (DpSize).

minSize

Source set: Common
@ExperimentalFoundationStyleApi
fun MinSizeScope.minSize(width: Dp, height: Dp)

Constrains the minimum width and height of the component. The component's dimensions, including padding, will be at least these values.

This property is not inherited

Parameters

width The minimum width.
height The minimum height.

Last updated: