Star
Wrapper for the Figma Star.
Props
Prop | Type | Default | Note |
---|---|---|---|
name | String | The name to be displayed in the Figma Layers List | |
pointCount | Number | ||
innerRadius | 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 StarNode fields are supported as props.
Example
<Star
innerRadius={0.5}
pointCount={5}
style={{ width: 100, height: 100, backgroundColor: '#0000ff' }}
/>