UNPKG

@starter-ui/core

Version:

This is a UI Components built with the utility classes from Tailwind CSS.

5 lines (4 loc) 251 B
import { RefObject } from 'react'; type Handler = (event: MouseEvent) => void; export declare function useOnClickOutside<T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: Handler, mouseEvent?: 'mousedown' | 'mouseup'): void; export {};