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:

SyntaxError: Unexpected token (1:8)
1 : return ()
            ^
LIVE DEMO

Compose#

toCenterX can compose with toTopใ€toCenterYใ€toBottomใ€toBetweenใ€toEvenlyใ€toAround:

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