UNPKG

@frontplus-ui/use-ripple

Version:

This hook is used to add ripple effect in all elements except void elements

18 lines (15 loc) 517 B
import * as react from 'react'; interface UseRippleProps { duration?: number; timingFunction?: string; disabled?: boolean; completedFactor?: number; } interface MinimalEvent { clientX: number; clientY: number; button: number; } declare function useRipple<T extends HTMLElement>(props?: UseRippleProps): readonly [react.RefObject<T>, (event: MinimalEvent) => void]; type UseRippleReturn = ReturnType<typeof useRipple>; export { MinimalEvent, UseRippleProps, UseRippleReturn, useRipple };