Fixed container. Children are absolutely positioned with x and y attributes. Maps to a Figma frame without auto-layout.
frame
tagfixed containerFixed container. Children are absolutely positioned with x and y attributes. Maps to a Figma frame without auto-layout.
w and h are required. clip (boolean presence) clips content to bounds.
| Attr | Type | Description |
|---|---|---|
name | string | |
x | number | |
y | number | |
w required | number | 'fill' | Required on frame |
h required | number | 'fill' | Required on frame |
fill | fill | |
fill-style | string | |
effect-style | string | |
radius | number | string | |
corner-smoothing | number | |
border | string | |
border-color | color | token | |
border-width | number | |
border-style | solid dashed dotted | |
border-align | center inside outside | |
shadow | string | |
clip | boolean | |
clip-path | string | |
overflow-x | hidden visible scroll auto | |
overflow-y | hidden visible scroll auto | |
border-image | string | |
outline | string | |
outline-offset | number |
Example
<frame w="390" h="844" fill="#FFFFFF" clip> <img x="0" y="0" src="assets/bg.webp" w="390" h="240" fit="cover" /> <text x="24" y="260" value="Good morning" font-size="28" font-weight="700" fill="#1C1C1E" /> </frame>
Frequently asked
What's the difference between frame and col?
A frame positions its children absolutely with x/y and maps to a Figma frame with auto-layout off; a col flows its children vertically with auto-layout. Use frame for fixed artboards, col for content-driven screens.