Reflex Cloud - Fast, secure & scalable hosting. One command to deploy.

Center

Center is a component that centers its children within itself. It is based on the flex component and therefore inherits all of its props.

Hello World!

API Reference

rx.center

A center component.

Test
PropType | ValuesDefaultInteractive
as_child
bool
direction
"row" | "column" | ...
align
"start" | "center" | ...
justify
"start" | "center" | ...
wrap
"nowrap" | "wrap" | ...
spacing
"0" | "1" | ...

Event Triggers

See the full list of default event triggers