vue3-ripple
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

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>

Package Sidebar

Install

npm i vue3-ripple

Weekly Downloads

7

Version

1.0.8

License

none

Unpacked Size

4.1 kB

Total Files

6

Last publish

Collaborators

  • vashuber