Skip to main content

To CenterX

Atomic Props to make children elements align to center horizontal.

Atomic PropsEffect
toCenterXMake children elements align to center horizontal

Usage

Center horizontal quickly with toCenterX prop:

Result
Loading...
Live Editor

Compose

toCenterX can compose with toToptoCenterYtoBottomtoBetweentoEvenlytoAround:

Compose base on toCenterX
row
toCenterX toTop
row
toCenterX toCenterY
row
toCenterX toBottom
column
toCenterX toTop
column
toCenterX toCenterY
column
toCenterX toBottom
column
toCenterX toBetween
column
toCenterX toEvenly
column
toCenterX toAround