material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Container] Allow `disableGutters` to support breakpoints

Open brsnik opened this issue 4 years ago • 3 comments

Duplicates

  • [X] I have searched the existing issues

Latest version

  • [X] I have tested the latest version

Summary 💡

The ability to add breakpoints when the show/hide the gutters.

Examples 🌈

<Container maxWidth={"xl"} disableGutters={{ xs: true, xl: false }}>

Motivation 🔦

No response

brsnik avatar Nov 19 '21 18:11 brsnik

@brsnik Hi, thanks for your suggestion. Do you want to give it a try? I can help :)

There are utils you can use in packages/mui-system/src/breakpoints.js. For example, in order to handle columns prop in Grid, computeBreakpointsBase, resolveBreakpointValues and handleBreakpoints are used. handleBreakpoints outputs css object including media query.

hbjORbj avatar Nov 22 '21 09:11 hbjORbj

Hi @hbjORbj , Are you aware if any action was ever taken relating to this issue? If not, I'd love to tackle it with your help.

nigel-f-wilson avatar Aug 23 '22 13:08 nigel-f-wilson

Is this something that would likely be accepted as a PR?

mi-na-bot avatar Dec 15 '22 10:12 mi-na-bot

Adding to see if this was ever implemented. I think it would be useful on all MUI props, especially the ones inaccessible in the SX prop

kirill-develops avatar Jun 18 '23 16:06 kirill-develops