Constraints and Pinning
Rules defining how layers behave when a frame resizes.
See it on the 3D treeGoing deeper
Each layer is given a horizontal and vertical rule relative to its parent: stay a set distance from an edge, remain centred, stretch between two edges or scale proportionally. Pinning to opposite edges makes a layer stretch. Auto layout differs by arranging items in relation to one another.
Why it matters
You can resize a frame to test other screen sizes without repositioning every layer by hand.
In practice
You pin a close button to the top right and stretch a header image between both sides, then widen the frame to check.
Connected terms
- Auto LayoutHandles flowing content, where constraints handle position relative to the parent.
- FigmaFigma provides constraints as settings on layers inside frames.
- Responsive DesignConstraints let a design file approximate how a layout adapts to other sizes.