Skip to content

Properties

PropertyTypeDefault valueDescription
direction'horizontal'
'vertical'
'horizontal'Direction of sub components. Can be: horizontal or vertical.
wrapbooleantrueTrue to wrap contents if there is not enough space.
justify'flex-start'
'flex-end'
'center'
'space-between'
'space-around'
'space-evenly'
'flex-start'How to place sub components if there is space available in the container.
align'flex-start'
'flex-end'
'center'
'stretch'
'baseline'
'flex-start'How to align sub components.
divider'space'
'line'
'line-framed'
'space'How to separate sub components.
sizeCountnumber12Define how many parts your layout should be divided in. Should be used in combination with a Flex.Item.
gap'xx-small'
'x-small'
'small'
'medium'
'large'
'x-large'
'xx-large'
false
'small'How much space between child items. Use false for no spacing. Only works in vertical layout if the rowGap is not set.
rowGap'xx-small'
'x-small'
'small'
'medium'
'large'
'x-large'
'xx-large'
false
'small'How much space between rows. Use false for no row gap. Will override gap in vertical layout if set.
elementstring
React.Element
'div'Define the type of element.
innerRefReact.RefundefinedProvide a React.Ref to accessing the inner HTML element.
SpaceVariousSpacing properties like top or bottom are supported.
spacing'xx-small'
'x-small'
'small'
'medium'
'large'
'x-large'
'xx-large'
false
'small'(deprecated) Deprecated, use gap instead. How much space between sub components. Can be false for no spacing.