Flex
- Deprecated
- Not reviewed for accessibility
The Flex component behaves the same as the Box component except that it has display: flex set by default.
Use Box instead.
<Flex flexWrap="nowrap"><Box p={3} color="fg.onEmphasis" bg="accent.emphasis">Item 1</Box></Flex>
<Box display="flex" flexWrap="nowrap"><Box p={3} color="fg.onEmphasis" bg="accent.emphasis">Item 1</Box></Box>
Flex components get FLEX, COMMON, and LAYOUT system props.
Read our System Props doc page for a full list of available props.
Flex does not get any additional props other than the system props mentioned above.