Clamp

@Composable
fun Clamp(modifier: Modifier = Modifier, orientation: Orientation = Orientation.HORIZONTAL, maximumSize: Int = 600, tighteningThreshold: Int = 400, content: @Composable () -> Unit)

Creates a org.gnome.adw.Clamp that constrains its child to a given size.

Parameters

modifier

Compose Modifier for layout and styling.

orientation

The axis in which clamping is applied.

maximumSize

The maximum size allocated to the child.

tighteningThreshold

The size above which the child is clamped.

content

The composable content to display inside the clamp.