star
A star shape.
Path
component-api:anatomy.<element>.type: star
Styles
Written on the element, not this anatomy entry — under a variant, slot content, or a composition. The style keys an element of this type may carry:
aspectRatio · bottom · centerHorizontalOffset · centerVerticalOffset · cornerSmoothing · effects · end · fillColor · height · layoutSizingHorizontal · layoutSizingVertical · locked · maxHeight · maxWidth · minHeight · minWidth · opacity · position · rotation · start · strokeAlign · strokeDashPattern · strokeWeight · strokes · top · visible · width
Themes
Selected on the element, not this anatomy entry. Any element may select a theme for a token group, or inherit one from the nearest ancestor — deciding what its subtree’s token references resolve to.
Platform bindings
Figma
Disposition: approximated · Realised by: STAR node
Rules: typeDetection — with text, glyph, vector, container, line, ellipse, rectangle, polygon
The node type maps directly, but the point count and inner-radius ratio are not carried by the spec — render creates the default star.
CSS
Disposition: unsupported · Realised by: —
Same as polygon: box styles only, no shape. Point count and inner radius are not in the spec.
React
Disposition: unsupported · Realised by: a styled div — box only, no shape
Same as polygon.
Web Components
Disposition: unsupported · Realised by: a styled div — box only, no shape
Same as polygon.
Decisions
None.
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/component.schema.json |
| TypeScript | packages/schema/types/Element.ts |
| Specification | §2, §11 |