To CenterY

Atomic Props to make children elements align to center vertical.

Atomic PropsEffect
toCenterYMake children elements align to center vertical

用法#

Center vertical quickly with toCenterY prop:

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

组合使用#

toCenterY can compose with toLefttoCenterXtoRighttoBetweentoEvenlytoAround:

Compose base on toCenterY
row
toCenterY toLeft
row
toCenterY toCenterX
row
toCenterY toRight
column
toCenterY toLeft
column
toCenterY toCenterX
column
toCenterY toRight
row
toCenterY toBetween
row
toCenterY toEvenly
row
toCenterY toAround