UNPKG

balm-ui

Version:

A modular and customizable UI library based on Material Design and Vue 3

18 lines (13 loc) 307 B
import { watch, onMounted } from 'vue'; import { useRipple } from './ripple'; function useButton(elementRef, props) { onMounted(() => { const element = elementRef.value; useRipple(element); watch( () => props.type, () => useRipple(element) ); }); } export { useButton };