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

MinSizeScope

An interface that introduces min size properties to a Style receiver scope interface.

Source set: Common
@ExperimentalFoundationStyleApi
interface MinSizeScope

An interface that introduces min size properties to a Style receiver scope interface.

Functions

minWidth

fun minWidth(value: Dp)

Constrains the minimum width of the component. The component's width, including padding, will be at least this value.

This property is not inherited

Parameters

value The minimum width.

minHeight

fun minHeight(value: Dp)

Constrains the minimum height of the component. The component's height, including padding, will be at least this value.

This property is not inherited

Parameters

value The minimum height.

Last updated: