Page

Wrapper for Figma Pages. Figma document (figma.root) should be a parent.

Props

PropTypeDefaultNote
nameStringThe name to be displayed in the Figma Layers List
childrenNode
styleStyleOnly layout props
isCurrentBooleanMake page current
onCurrentChangeFunctionChanging current page callback
backgroundsPaint[]Zero or one fill styles for the page
onLayoutFunctionEvent is fired once the layout has been calculated
onNodeIdFuctionGetting Figma Node ID callback

Example

<Page isCurrent name="My Page" style={{flexDirection: "row"}}>
<Text>Hello world!</Text>
</Page>