Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 500 Bytes

Flex.md

File metadata and controls

18 lines (14 loc) · 500 Bytes

Flex

The <Flex /> component is an extension of the <Box /> component with display: flex and props for using flexbox.

<Flex>
  <Box width={1/2} p={2} m={2} bg='lightBlue'>Flex</Box>
  <Box width={1/2} p={2} m={2} bg='lightGreen'>Box</Box>
</Flex>
Prop Type Description
align string sets align-items
justify string sets justify-content
wrap boolean sets flex-wrap: wrap
flexDirection string sets flex-direction (either row or column)