# Flexbox

Quickly manage the layout, alignment, and sizing of grid columns, navigation, components, and more with a full suite of responsive flexbox utilities.

If you are **new to or unfamiliar with flexbox**, we encourage you to read this [CSS-Tricks flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) guide. ## Properties for the Parent ### display {{"demo": "Display.js", "defaultCodeOpen": false, "bg": true}} ```jsx … ``` ### flex-direction For more information please see flex-direction on MDN. {{"demo": "FlexDirection.js", "defaultCodeOpen": false, "bg": true}} ```jsx … ``` ### flex-wrap For more information please see flex-wrap on MDN. {{"demo": "FlexWrap.js", "defaultCodeOpen": false, "bg": true}} ```jsx … ``` ### justify-content For more information please see justify-content on MDN. {{"demo": "JustifyContent.js", "defaultCodeOpen": false, "bg": true}} ```jsx … ``` ### align-items For more information please see align-items on MDN. {{"demo": "AlignItems.js", "defaultCodeOpen": false, "bg": true}} ```jsx … ``` ### align-content For more information please see align-content on MDN. {{"demo": "AlignContent.js", "defaultCodeOpen": false, "bg": true}} ```jsx … ``` ## Properties for the Children ### order For more information please see order on MDN. {{"demo": "Order.js", "defaultCodeOpen": false, "bg": true}} ```jsx Item 1 Item 2 Item 3 ``` ### flex-grow For more information please see flex-grow on MDN. {{"demo": "FlexGrow.js", "defaultCodeOpen": false, "bg": true}} ```jsx Item 1 Item 2 Item 3 ``` ### flex-shrink For more information please see flex-shrink on MDN. {{"demo": "FlexShrink.js", "defaultCodeOpen": false, "bg": true}} ```jsx Item 1 Item 2 Item 3 ``` ### align-self For more information please see align-self on MDN. {{"demo": "AlignSelf.js", "defaultCodeOpen": false, "bg": true}} ```jsx Item 1 Item 2 Item 3 ``` ## API ```js import { flexbox } from '@mui/system'; ``` | Import name | Prop | CSS property | Theme key | | :--------------- | :--------------- | :---------------- | :-------- | | `flexDirection` | `flexDirection` | `flex-direction` | none | | `flexWrap` | `flexWrap` | `flex-wrap` | none | | `justifyContent` | `justifyContent` | `justify-content` | none | | `alignItems` | `alignItems` | `align-items` | none | | `alignContent` | `alignContent` | `align-content` | none | | `order` | `order` | `order` | none | | `flex` | `flex` | `flex` | none | | `flexGrow` | `flexGrow` | `flex-grow` | none | | `flexShrink` | `flexShrink` | `flex-shrink` | none | | `alignSelf` | `alignSelf` | `align-self` | none |