$ npm install --save react-ripplesor
$ yarn add react-ripplesimport Ripples from 'react-ripples'
render() {
<Ripples>
<button>Ripple Button</button>
</Ripples>
}static propTypes = {
during: PropTypes.number,
color: PropTypes.string,
}
static defaultProps = {
during: 600,
color: 'rgba(0, 0, 0, .3)',
}| Property | Description |
|---|---|
| during | The css animate duration [ms] |
| color | The ripple's background color |
