@nextui-org/drip
Version:
A ripple effect for ensuring that the user fells the system is reacting instantaneously
14 lines (11 loc) • 334 B
TypeScript
import { CSSProperties, MouseEvent } from 'react';
type DripInstance = {
key: number;
style: CSSProperties;
};
declare function useDrip(): {
drips: DripInstance[];
onClick: (event: MouseEvent<HTMLElement>) => void;
};
type UseDripReturn = ReturnType<typeof useDrip>;
export { DripInstance, UseDripReturn, useDrip };