question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Drawer] How to use in a custom container?

See original GitHub issue

At 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mnemanjacommented, May 15, 2020

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.

0reactions
filipe-gomescommented, Feb 23, 2021

@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" and anchor="right". If it is anchored to the left, it works smoothly, but when anchoring to the right I get the janky behavior.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found