Adds Material Design-style feedback ripples to your existing HTML (React components?) without any dependencies. Implemented from samthor's rippleJS for ReactJS
'react': ^18.0.0
Install this package with your favorite package manager
# npm
npm i react-ripplejs
# pnpm
pnpm i react-ripplejs
# yarn
yarn add react-ripplejs
import Ripple from "react-ripplejs";
const App = () => (
<Ripple
fill={false} // boolean?, default: false
opacity={""} // string?, default: ""
background={""} // string?, default: ""
>
Somthing here brrr
</Ripple>
);
export default App;
Fill ripple to rounded corners, good for form elements with fixed size.
Default: false
Ripple Opacity, example: 0.1
Default: (empty)
Ripple Background, example: red
Default: (empty)