Polygon
A closed shape with straight sides drawn on the page, with a fill and an outline. It holds no data.
This page is generated from the product’s own definitions, so it is always current. To change it, change the product.
A closed shape with straight sides drawn on the page, with a fill and an outline. It holds no data.
When to use it. Use for triangles, arrows and other straight-sided shapes; pick a Rectangle for plain boxes.
Slots
This kind has no data slots: it shows what it is given in the editor.
Channels
| Channel | Label | Value | Rules | Brand tokens | What it sets |
|---|---|---|---|---|---|
shape.fill | Fill | color | yes | no | Colour inside the shape. A fixed fill may also be a gradient; colours set by rules are always solid. Default black. |
shape.opacity | Opacity | number | yes | no | How see-through the whole shape is, from 0 (invisible) to 1 (solid). Default 1. |
shape.stroke | Stroke | color | yes | no | Colour of the shape's outline, or of the line itself. Default black. |
shape.strokeWidth | Stroke width | number | yes | no | Thickness of the shape's outline, or of the line itself, in points. 0 draws no outline. Default 0. |
See channels for every channel, rule kinds for what a rule can be, and operations for the operations that create and change this kind.