I need to disable the default box-shadow
for most MUI components. Right now I'm doing this by setting the style manually for each component, like this:
<FloatingActionButton style={{boxShadow: "none"}} />
Is there a way to do this globally, maybe using a theme setting?
By default, when we use AppBar component from Material UI, there is a thick box-shadow. We can control the box-shadow using elevation attribute. Setting the value of elevation to 0 removes the box shadow.
You can remove the elevation from Material UI's AppBar by setting the elevation prop to 0.
The Box component serves as a wrapper component for most of the CSS utility needs. The Box component packages all the style functions that are exposed in @mui/system .
You can do it by component like this:
<AppBar elevation={0} />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With