Skip to content

[Grid] Make all the props responsive #6140

Closed
@jgoux

Description

@jgoux

Hello,

we-need-to-go-deeper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: GridThe React component.good first issueGreat for first contributions. Enable to learn the contribution process.new featureNew feature or requestpriority: importantThis change can make a difference

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions