Group

Wrapper for the Figma group.

Props

PropTypeDefaultNote
nameStringThe name to be displayed in the Figma Layers List
childrenNode
styleStyleNot all props
onSelectionEnterFunctionSelection enter event callback
onSelectionLeaveFunctionSelection leave event callback
onLayoutFunctionEvent is fired once the layout has been calculated

Also, most of the FrameNode fields are supported as props.

Example

<Group name="Comp">
<Text>Hello world!</Text>
</Component>