material-components / material-web

Material Design Web Components
https://material-web.dev
Apache License 2.0
8.98k stars 847 forks source link

Responsive Layout #1451

Open aress31 opened 4 years ago

aress31 commented 4 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I think that the developing experience with MWC could greatly benefit from implementing responsiveness out of the box.

My suggestion would be the addition of a prop either to the or to define at which viewport width the responsive design - meaning the hamburger button and the drawer - should be triggered.

Let's say my application is made of only an app-bar with a navigation menu on the right hand side, but that for mobile user I want to switch to a drawer design. We could do by defining the drawer like for example.

Describe the solution you'd like A clear and concise description of what you want to happen. See this solution for React: https://mui-treasury.com/layout/

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Alternatively, what I want to achieve could be done with media-queries but that would be a lot of extra codes and checks to achieve something that is now a pre-requisite for modern web dev.

Additional context Add any other context or screenshots about the feature request here.

dfreedm commented 4 years ago

Thanks for filing this issue. We're currently prioritizing building out the full component set in Material Design, but after that is done, implementing helpers for Material Design Layout would be next on the list.