BalanceReckon Design System
LayoutFlex

Flex

The Flex layout primitive is a thin abstraction over the CSS flexbox layout.

FlexProps

PropTypeRequiredDefaultDescription
alignItemsResponsiveProp<CSSProperties['alignItems']>——The value of the "align-items" property.
childrenReactNode——The content of this flex element.
directionResponsiveProp<CSSProperties['flexDirection']>——Defines the main axis, or how the children are placed.
gapResponsiveProp<keyof BalanceTheme['spacing']>——The size of the gap between each child element.
inlineboolean——Display as an inline-level flex container.
justifyContentResponsiveProp<CSSProperties['justifyContent']>——The value of the "justify-content" property.
wrapboolean——Allow flex items to flow onto multiple lines.
Also accepts BoxProps