Flex
Implementation of a CSS flex-box container
How to use
Flexboxes are divs that per definition are flexing :)
The following Flex Container using styled-components:
Can be simplified using the Flex
component
Props
Types
flex
number | undefined
column
boolean | undefined
row
boolean | undefined
justify
"flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "initial" | "inherit" | undefined
align
"flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "initial" | "inherit" | undefined
wrap
boolean | "wrap" | "wrap-reverse" | "nowrap" | undefined
Last updated