No layout behavior. Children are absolutely positioned relative to the group origin. Maps to a Figma group node.
group
taglogical groupingNo layout behavior. Children are absolutely positioned relative to the group origin. Maps to a Figma group node.
When the first child of a Figma group is a mask node, the mask shape is extracted as an SVG asset and hoisted onto the <group> as mask-src attrs.
| Attr | Type | Description |
|---|---|---|
name | string | |
x | number | |
y | number | |
w required | number | Required on group — no content to derive size from |
h required | number | Required on group — no content to derive size from |
mask-src | asset | |
mask-x | number | |
mask-y | number | |
mask-width | number | |
mask-height | number | |
mask-mode | alpha luminance | |
mask-composite | add subtract intersect exclude |
Group with mask
<group x="0" y="0" w="390" h="200" mask-src="assets/mask-1.svg" mask-x="0" mask-y="0" mask-width="390" mask-height="200"> <img x="0" y="0" src="assets/texture.webp" w="390" h="200" fit="cover" /> </group>