Page
Wrapper for Figma Pages.
Figma document (figma.root
) should be a parent.
Props
Prop | Type | Default | Note |
---|---|---|---|
name | String | The name to be displayed in the Figma Layers List | |
children | Node | ||
style | Style | Only layout props | |
isCurrent | Boolean | Make page current | |
onCurrentChange | Function | Changing current page callback | |
onLayout | Function | Event is fired once the layout has been calculated |
Example
<Page isCurrent name="My Page" style={{flexDirection: "row"}}>
<Text>Hello world!</Text>
</Page>