Star

Wrapper for the Figma Star.

Props

PropTypeDefaultNote
nameStringThe name to be displayed in the Figma Layers List
pointCountNumber
innerRadiusNumber
styleStyleNot all props
onSelectionEnterFunctionSelection enter event callback
onSelectionLeaveFunctionSelection leave event callback
onLayoutFunctionEvent is fired once the layout has been calculated
onNodeIdFuctionGetting 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' }}
/>