Creates an adjustable, empty space that can be used to tune the spacing between child elements withinflex
.
Example
Example
Example
Asstack
,vstack
andhstack
are all built fromflex
, it is possible to also usespacer
inside of these components.
API Reference
rx.spacer
A spacer component.
Test
Prop | Type | Values | Default | Interactive |
---|---|---|---|
as_child | bool |
| |
direction | "row" | "column" | ... |
| |
align | "start" | "center" | ... |
| |
justify | "start" | "center" | ... |
| |
wrap | "nowrap" | "wrap" | ... |
| |
spacing | "0" | "1" | ... |
|