Skip to main content

Shape

Draws a geometric shape. Useful for decoration, backgrounds, dividers, and progress bar bases.

Usage

Tap the ➕ in the top-right of the editor and add shape, then pick a shape name in the "content" field:

ContentShape
circleCircle ⚫
rectangleRectangle
roundedrectangleRounded rectangle
ellipseEllipse
capsuleCapsule

Common properties

PropertyDescription
Width / HeightSize
ColorFill color, supports gradients
Corner radiusRounded rectangle only
Rotation / OffsetEffects
Opacity0~1

Example: a simple progress bar

A zstack containing two shapes:

LayerTypeWidthColor
Bottomrectangle100Gray
Toprectangle{percent}Theme color

In JS, set this.percent = 60 → the bar fills to 60%.

Want something more polished?

Try Gauge — rings, arcs, and progress bars all come with built-in styling.