DEV Community

Tito
Tito

Posted on

8 2

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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay