To CenterX
Atomic Props to make children elements align to center horizontal.
Atomic Props | Effect |
---|---|
toCenterX | Make children elements align to center horizontal |
#
UsageCenter horizontal quickly with toCenterX
prop:
SyntaxError: Unexpected token (1:8) 1 : return () ^
LIVE DEMO
#
ComposetoCenterX
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