v-ripple
Directive
Applies a Material-style ripple animation emanating from the click position. Supports centered ripples, circular clipping, custom CSS classes and propagation stop.
API
Valeur / Arguments
Forme de la valeur du binding et de chaque propriété de l'objet d'options.
- valueboolean | { class?: string; center?: boolean; circle?: boolean }
- Pass false to disable. Pass an object to set a custom class on the ripple element or to override center/circle via the value (equivalent to using modifiers).
API
Modificateurs
Modificateurs à suffixe point qui modifient le comportement de la directive.
- .center
- The ripple always starts from the geometric center of the element instead of the actual click position. Typically used for icon buttons.
- .circle
- Clips the ripple container to a perfect circle. Combine with .center for round icon buttons.
- .stop
- Calls stopPropagation() on the pointer event after spawning the ripple, preventing parent click handlers from firing.
Usage
Exemples
Extraits de code prêts à coller dans vos templates.
Basic ripple
Centered circle ripple on an icon button