Remove Material UI AppBar Box Shadow

Last updated on 12 Sep, 2021

By default, when we use AppBar component from Material UI, there is a thick box-shadow.

Default AppBar elevation

We can control the box-shadow using elevation attribute. Setting the value of elevation to 0 removes the box shadow.

<AppBar elevation={0}>//...</AppBar>

Here is how the AppBar looks from elevation 0 to 4. I have set the background to transparent to easily see the elevation difference.

Multiple Elevations
--- ○ ---