@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
26 lines (25 loc) • 708 B
TypeScript
import * as react86 from "react";
import { Key, MouseEventHandler } from "react";
//#region src/components/ripple/use-ripple.d.ts
interface RippleOptions {
key: Key;
size: number;
x: number;
y: number;
}
interface UseRippleProps<Y = HTMLElement> {
disabled?: boolean;
onClick?: MouseEventHandler<Y>;
}
declare const useRipple: <Y = HTMLElement>({
disabled,
...rest
}?: UseRippleProps<Y>) => {
ripples: RippleOptions[];
onClear: (key: Key) => void;
onClick: (ev: react86.MouseEvent<Y, MouseEvent>) => void;
};
type UseRippleReturn = ReturnType<typeof useRipple>;
//#endregion
export { RippleOptions, UseRippleProps, UseRippleReturn, useRipple };
//# sourceMappingURL=use-ripple.d.ts.map