Components
Documentation contentSpacer
Use spacer for empty space between siblings. grow fills unused space on the main axis, which can push toolbar actions to the trailing edge. Set width or height for a fixed gap. Use separator for a visible dividing line.
spacer

Markup
Programmatic construction (Zig)
In a Zig view, the canvas.Ui builder constructs the same tree programmatically. ui.spacer(1) is the builder shorthand for a grow-1 spacer.
Attributes
| Attribute | Description |
|---|---|
width | Definite width (plain number): the element is exactly this wide; content neither shrinks nor overflows it. On resizable it is the initial width. |
height | Definite height (plain number): the element is exactly this tall; content neither shrinks nor overflows it. |
grow | Flex grow factor; give spacer one. |
