vue3-ripple
v1.0.8
Published
This package provide directive for ripple effect on click
Downloads
23
Readme
vue3-ripple
This package provide directive for ripple effect on click
Installation
npm install vue3-ripple
Basic usage
import { createApp } from "vue";
import App from "./App.vue";
import { ripple } from "vue3-ripple";
const app = createApp(App);
app.directive("ripple", ripple);
app.mount("#app");
<button class="btn" v-ripple>
click
</button>
Default color rgba(226, 237, 255, 0.5)
Modify color
<button class="btn" v-ripple="{color: 'rgba(0, 0, 0, 0.5)'}">
click
</button>