Material design – Ripple button component (react)

Articles|HÃ¥kon Underbakke | almost 4 years ago

I love the onClick-ripple effect that material design buttons offer. I decided to make my own button-component that inhabits this effect by default, but is also flexible beyond that feature. Here’s the result:

I went for react-jss for styling the component as to make it as self-contained as possible. If you don’t want to use react-jss, you can just import the stylesheet included in the codesandbox.