UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

21 lines (20 loc) 597 B
import { RefObject } from "react"; //#region src/hooks/use-outside-click/index.d.ts interface UseOutsideClickProps { ref: RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[]; enabled?: boolean; handler?: (ev: Event) => void; } /** * `useOutsideClick` is a custom hook that detects click events outside of an element. * * @see https://yamada-ui.com/docs/hooks/use-outside-click */ declare const useOutsideClick: ({ ref, enabled, handler }: UseOutsideClickProps) => void; //#endregion export { UseOutsideClickProps, useOutsideClick }; //# sourceMappingURL=index.d.ts.map