AdwClamp
A container that constrains its child to a maximum size.
Preview
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 towardsmaximumSize, centered. - Puts
.small,.medium, or.largeCSS classes on the child based on its size relative totighteningThresholdandmaximumSize. - Never makes the child smaller than its minimum size, even above
maximumSize.