-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Drawer] Provide prop PaperComponent #23384
Comments
Yeah, that looks like a big chunk of work ;). What would be a good way to work around it for now?
I favor 2 as it seems to be the simplest given my current knowledge level in react, material-ui and jsx etc. in general. It generates minor css/nesting overhead. 1 would keep me within the framework entirely, but drop semantics. It probably also involves a decent amount of style overrides. 3 would probably be cleanest, but having had a quick look at the source I am not confident that hard replacing the component is all that straighforward, or is it? Is there an (maybe easier) option I overlooked? |
@maxkahnt You can customize the CSS of the Paper to reset the style and render your own as a child (2.), the simpler and safer. |
Closing for #21453 |
Summary 💡
Drawer should provide a prop to override PaperComponent (not only PaperProps) like, e.g. Dialog does.
Motivation 🔦
I occasionally need to wrap/replace the paper component.
The text was updated successfully, but these errors were encountered: