components/flex/index.en-US.md
<code src="./demo/basic.tsx">Basic</code> <code src="./demo/align.tsx">align</code> <code src="./demo/gap.tsx">gap</code> <code src="./demo/wrap.tsx">Wrap</code> <code src="./demo/combination.tsx">combination</code> <code src="./demo/debug.tsx" debug>debug</code>
This component is available since
[email protected]. The default behavior of Flex in horizontal mode is to align upward, In vertical mode, aligns the stretch, You can adjust this via properties.
Common props ref:Common props
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
| vertical | Is direction of the flex vertical, use flex-direction: column | boolean | false | |
| wrap | Set whether the element is displayed in a single line or in multiple lines | flex-wrap | boolean | nowrap | boolean: 5.17.0 |
| justify | Sets the alignment of elements in the direction of the main axis | justify-content | normal | |
| align | Sets the alignment of elements in the direction of the cross axis | align-items | normal | |
| flex | flex CSS shorthand properties | flex | normal | |
| gap | Sets the gap between grids | small | medium | large | string | number | - | |
| component | custom element type | React.ComponentType | div | |
| orientation | direction of the flex | horizontal | vertical | horizontal | - |
<ComponentTokenTable component="Flex"></ComponentTokenTable>