polygon
A regular polygon.
Path
component-api:anatomy.<element>.type: polygon
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: POLYGON node
Rules: typeDetection — with text, glyph, vector, container, line, ellipse, rectangle, star
The node type maps directly, but the point count is not carried by the spec — render creates the default polygon.
CSS
Disposition: unsupported · Realised by: —
No rule block can draw an n-gon. The element’s box styles emit; the shape does not. clip-path could approximate one and is deliberately not emitted — point data is not in the spec.
React
Disposition: unsupported · Realised by: a styled div — box only, no shape
Point data is not in the spec; the element’s box emits so layout holds, and the shape is declared lost.
Web Components
Disposition: unsupported · Realised by: a styled div — box only, no shape
Point data is not in the spec; declared lost, as on React.
Decisions
None.
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/component.schema.json |
| TypeScript | packages/schema/types/Element.ts |
| Specification | §2, §11 |