Closed
Description
Hello,
Description
Add extra flex properties on Layout
Currently, not all flex properties are supported.
I think we could benefit to have them so we don't have to touch the CSS every time when dealing with layout only components.
Missing properties : grow
, shrink
, basis
, flow
, order
Make the breakpoints properties (xs, sm, lg...) accept an object of subproperties
With the breakpoints properties, we have the control over the width of our components based on the screen resolution.
It would be totally awesome to have control over all the flex properties based on the resolution.
To do that, we could make the breakpoints properties accept an object of subproperties like this :
<Grid spacing={{ sm: 2, md: 4 }} alignItems={['center', 'flex-end']}>
{/*...*/}
</Grid>
Images & references
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout