FlexBox
說明: 將會搭配 Chakra UI 慣用的寫法來搭配程式碼範例
flex-direction#
flexDirectionisdirection
預設為 row
css
flex-wrap#
css
flex-flow#
ps: chakra is not support this css style in props
flex-direction 和 flex-wrap 這兩個屬性可以合併成 flex-flow 屬性。flex-flow 接受兩個值,第一個是給 flex-direction 第二個是給 flex-wrap
css
justify-content#
justifyContentisjustify
主軸的對齊方式
css
align-items#
alignItemsisalign
交叉軸 (cross axis) 的對齊方式
css