[Drawer] How to use in a custom container?
See original GitHub issueAt the moment the positioning of the Drawer is fixed
and the animation is considering screen as an anchor point together for both enter, and leave animations.
It would be very nice if this behavior can be scoped to a container.
- I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
It should be possible to define a reference container into which the Drawer component can be rendered. All of the behavior should be contained within this container.
For me, it is important to have the variant: temporary
behavior, but in general, it would be nice to have all of them.
Examples 🌈
https://github.com/mui-org/material-ui/issues/11749
Motivation 🔦
I want to show details of an item in a Drawer, not across the whole screen, but across the body of that item by having the content slide in from the (right) side.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
[Drawer] How to use in a custom container? #20950 - GitHub
It should be possible to define a reference container into which the Drawer component can be rendered. All of the behavior should be...
Read more >Custom Drawer Organizer - The Container Store
Shop The Container Store's custom drawer organizer collection & get free shipping on orders of $75 or more + free in-store pickup every...
Read more >flutter - Open side drawer from custom button exist in a container
I want to open side drawer from a button exist in a container not from the AppBar side button. Also this should be...
Read more >Custom Container Storage - Crystal Cabinets
Custom Container Storage. Home / Premium Custom / Storage Solutions ... Related products. Quick View. Drawer with Interior Drawer.
Read more >The Container Store Custom Drawer Organizer Strips
Find helpful customer reviews and review ratings for The Container Store Custom Drawer Organizer Strips at Amazon.com. Read honest and unbiased product ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for addressing this issue. I’ll set up a code sandbox first chance I get with the solution that I devised, but personally I believe it should be more elegant, I just haven’t the time to make it so atm.
@mnemanja I’d love to see your solution to this. I’ve been dealing with the same problem the last couple days, and my implementation of a fix causes the screen to “wiggle” a little when the drawer comes out. I’m using
variant="temporary"
andanchor="right"
. If it is anchored to the left, it works smoothly, but when anchoring to the right I get the janky behavior.