How to disable ripple in Material Design React

前端 未结 3 1386
灰色年华
灰色年华 2021-01-18 10:34

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.

3条回答
  •  没有蜡笔的小新
    2021-01-18 10:37

    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 (
                
    Icon Button Standard Button
    ) }

提交回复
热议问题