The Material-UI update MUI 5 advices to stop using makeStyles
to define styles. It is recommended to use emotion css. I wonder how to style the paper element of the drawer component. My goal is to handover a custom width to the paper element. How can I define a proper css-class?
Old way with makeStyles
:
<Drawer
classes={{
paper: classes.paper,
}}
variant="persistent"
anchor={anchor}
open={isOpen}
>