AdwClamp

A container that constrains its child to a maximum size.

Preview

Account
Usernamejohn_doe
Emailjohn@example.com

CSS Node Tree

clamp
└── [child][.small|.medium|.large]

Props

Prop

Type

Behavior

  • Gives the child the full width up to tighteningThreshold, then eases it towards maximumSize, centered.
  • Puts .small, .medium, or .large CSS classes on the child based on its size relative to tighteningThreshold and maximumSize.
  • Never makes the child smaller than its minimum size, even above maximumSize.

Adwaita Documentation →

On this page