DEV Community

Tito
Tito

Posted on

Tip: Remove Material UI's AppBar elevation

You can remove the elevation from Material UI's AppBar by setting the elevation prop to 0.

This works because the Material UI API is design to composable see: https://material-ui.com/guides/minimizing-bundle-size/

<AppBar elevation={0}></AppBar>
Enter fullscreen mode Exit fullscreen mode

Top comments (3)

Collapse
 
rajssj4 profile image
Rajesh Nautiyal

thanks this helped me and saved time

Collapse
 
hummingbird profile image
Tito

Really glad to hear that man! Keep at it!

Collapse
 
freemohamed profile image
freemohamed

Thanks for taking the time to post this. Helped a lot.