androidx.compose.foundation.layout
defaultMinSize
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the minWidth and minHeight constraints are only applied when the incoming corresponding constraint is 0. The modifier can be used, for example, to define a default min size of a component, while still allowing it to be overidden with smaller min sizes across usages.
Parameters
fun Modifier.defaultMinSize(
minWidth: Dp = Dp.Unspecified,
minHeight: Dp = Dp.Unspecified,
)
minWidth: DpOptional
minWidth: DpOptionalDefault: Dp.Unspecified
Not described.
minHeight: DpOptional
minHeight: DpOptionalDefault: Dp.Unspecified
Not described.
Library docs
Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the
minWidth and minHeight constraints are only applied when the incoming corresponding
constraint is 0. The modifier can be used, for example, to define a default min size of a
component, while still allowing it to be overidden with smaller min sizes across usages.
Example usage: