Creates an adjustable, empty space that can be used to tune the spacing between child elements within Flex.

Example

Example

Example

rc.flex(
    rc.center(rc.text("Example"), bg="lightblue"),
    rc.spacer(),
    rc.center(rc.text("Example"), bg="lightgreen"),
    rc.spacer(),
    rc.center(rc.text("Example"), bg="salmon"),
    width="100%",
)

rc.Spacer

A flexible space component.

Props

No component specific props

Event Triggers

See the full list of default event triggers