I am talking about this repository. https://github.com/callemall/material-ui
I want to know how to disable the ripple effect from all components.
Thanks.
For anyone that cares about how to do so on an individual button by button bases, be sure to apply the disableRipple
property to the individual button you care to disable the ripple effect for.
for example
import {Button, IconButton} from '@material-ui/core';
function RiplelessButtonSampleComponent(props)
{
return (
<div>
<strong>Icon Button</strong>
<IconButton disableRipple onClick={this.showModal} variant="text" color="primary">
<i className="fal fa-chevron-right" />
</IconButton>
<strong>Standard Button</strong>
<Button disableRipple onClick={this.showModal} variant="text" color="primary">
Click Me for No effect
</Button>
</div>
)
}
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