-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
component: GridThe React component.The React component.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.priority: importantThis change can make a difference.This change can make a difference.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.
Milestone
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
skirunman, hourliert, mzygmunt, sagar-sm, RZsam and 52 moreSkaronator, fazilbinzaid, Akaryatrh, RZsam, darkowic and 9 morefazilbinzaid, RZsam, BrickmanRodrigo, halimb, boltcoder and 11 morehalimb, ygd, jvvcn, codjoero, lukaszewiczAd and 6 more
Metadata
Metadata
Assignees
Labels
component: GridThe React component.The React component.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.priority: importantThis change can make a difference.This change can make a difference.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.
