import Ripples from 'react-ripples'
<Ripples>
<button type="button" className="btn btn-primary">
Primary
</button>
</Ripples>
<Ripples color="#fff" during={1200}>
<button type="button" className="btn btn-outline-primary">
Primary
</button>
</Ripples>
For example: a radius button
<div
style={{
display: 'inline-flex',
borderRadius: 25,
overflow: 'hidden',
}}
>
<Ripples color={'yellow'}>
<button type="button" className="btn btn-primary">
Primary
</button>
</Ripples>
</div>
You can easy to extend default props without HOC.
import { createRipples } from 'react-ripples'
const MyRipples = createRipples({
color: 'purple',
during: 2200,
})