react-ripple-button
a ripple-button component for React that from Ripple buttons https://codepen.io/jh3y/pen/EKGXEY
Installation
$ npm install react-ripple-button --save
$ yarn add react-ripple-button
Usage
; Component { const onClick = { console; }; return <RippleBtn btnClassName="test" text="test" onClick=onClick />; } ; //csstest background-color: red !important; width: 300px; height: 150px;
Properties
static propTypes = btnClassName: PropTypesstring //Custom component name btnStyle: PropTypesobject //Custom component style onClick: PropTypesfuncisRequired text: PropTypesstringisRequired //Custom component content ; static defaultProps = btnClassName: "" btnStyle: {} ;
License
MIT