Skip to main content

Type Alias: AdwClampProps

AdwClampProps = WidgetProps & object

Defined in: generated/jsx.ts:2056

Props for the AdwClamp widget.

Type Declaration

NameTypeDescriptionDefined in
child?Gtk.Widget | nullThe child widget of the AdwClamp.generated/jsx.ts:2058
children?ReactNode-generated/jsx.ts:2090
maximumSize?numberThe maximum size allocated to the child. It is the width if the clamp is horizontal, or the height if it is vertical.generated/jsx.ts:2064
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:2089
ref?Ref<Adw.Clamp>-generated/jsx.ts:2091
tighteningThreshold?numberThe size above which the child is clamped. Starting from this size, the clamp will tighten its grip on the child, slowly allocating less and less of the available size up to the maximum allocated size. Below that threshold and below the maximum size, the child will be allocated all the available size. If the threshold is greater than the maximum size to allocate to the child, the child will be allocated all the size up to the maximum. If the threshold is lower than the minimum size to allocate to the child, that size will be used as the tightening threshold. Effectively, tightening the grip on the child before it reaches its maximum size makes transitions to and from the maximum size smoother when resizing.generated/jsx.ts:2081
unit?Adw.LengthUnitThe length unit for maximum size and tightening threshold. Allows the sizes to vary depending on the text scale factor.generated/jsx.ts:2087