androidx.compose.foundation.layout
height
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Declare the preferred height of the content to be the same as the min or max intrinsic height of the content. The incoming measurement Constraints may override this value, forcing the content to be either smaller or larger.
With intrinsicSize
fun Modifier.height(intrinsicSize: IntrinsicSize)
intrinsicSize: IntrinsicSizeRequired
intrinsicSize: IntrinsicSizeRequiredNot described.
With height
fun Modifier.height(height: Dp)
height: DpRequired
height: DpRequiredNot described.
Library docs
Declare the preferred height of the content to be the same as the min or max intrinsic height of
the content. The incoming measurement Constraints may override this value, forcing the content
to be either smaller or larger.
See width for other options of sizing to intrinsic width. Also see height and heightIn for
other options to set the preferred height.
Example usage for min intrinsic: