Rectangle
Wrapper for the Figma Rectangle.
Props
Prop | Type | Default | Note |
---|---|---|---|
name | String | The name to be displayed in the Figma Layers List | |
top | Number | ||
left | Number | ||
width | Number | ||
height | Number | ||
style | Style | Not all props | |
onSelectionEnter | Function | Selection enter event callback | |
onSelectionLeave | Function | Selection leave event callback | |
onLayout | Function | Event is fired once the layout has been calculated | |
onNodeId | Fuction | Getting Figma Node ID callback |
Also, most of the RectangleNode fields are supported as props.
Example
<Rectangle
height={100}
width={200}
/>