<Flex
direction="row"
alignItems="stretch"
justifyContent="flex-start"
gap="4"
columnGap="2"
rowGap="2"
alignContent="stretch"
placeContent="center"
placeItems="center"
inline={false}
/>
Flex Container Props
In addition to the props listed in the tables below, the Flex component can accept any valid HTML div props.Other than the gap and responsive props, each of the props listed corresponds to a CSS property.alignContent
CSSProperties[alignContent]
alignItems
CSSProperties[alignItems]
default:"stretch"
columnGap
"0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "13" | "14"
Applies column-gap CSS property. See
Spacing direction
CSSProperties[flexDirection]
default:"row"
gap
"0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "13" | "14"
Applies gap CSS property. See Spacing Applies display: inline-flex CSS property.
justifyContent
CSSProperties[alignContent]
placeContent
CSSProperties[placeContent]
placeItems
CSSProperties[placeItems]
rowGap
"0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "13" | "14"
Applies row-gap CSS property. See Spacing Applies flex-wrap CSS property.
<Flex
alignSelf="center"
basis="auto"
flex="0 1 auto"
grow={1}
shrink={1}
order={0}
placeSelf="center"
/>
Flex Item Props
These props are used to configure the Flex component as a flex item (with a parent flex container).Can also be used for grid item Flex.
flex
CSSProperties[flex]
default:"0 1 auto"
Can also be used for grid item Flex.
Can also be used for grid item Flex.
shrink
CSSProperties[flexShrink]
Can also be used for grid item Flex.