Rectangle

A rectangle drawn on the page, with a fill, an outline and optional rounded corners. It holds no data, but rules can change its colours by value.

This page is generated from the product’s own definitions, so it is always current. To change it, change the product.

A rectangle drawn on the page, with a fill, an outline and optional rounded corners. It holds no data, but rules can change its colours by value.

When to use it. Use for panels, backgrounds and colour blocks; pick an Ellipse for round shapes or a Polygon for other straight-sided outlines.

Slots

This kind has no data slots: it shows what it is given in the editor.

Channels

ChannelLabelValueRulesBrand tokensWhat it sets
shape.cornerRadiusCorner radiusnumberyesnoHow rounded a rectangle's corners are, as a radius in points. Default 0, square corners.
shape.fillFillcoloryesnoColour inside the shape. A fixed fill may also be a gradient; colours set by rules are always solid. Default black.
shape.opacityOpacitynumberyesnoHow see-through the whole shape is, from 0 (invisible) to 1 (solid). Default 1.
shape.strokeStrokecoloryesnoColour of the shape's outline, or of the line itself. Default black.
shape.strokeWidthStroke widthnumberyesnoThickness 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.