UNPKG

rsuite

Version:

A suite of react components

18 lines (17 loc) 503 B
/// <reference types="react" /> interface UseActiveProps { target: React.RefObject<HTMLElement | null>; onOpen?: () => void; onClose?: () => void; onEnter?: (node: HTMLElement) => void; onExit?: (node: HTMLElement) => void; setSearchKeyword: (keyword: string) => void; } declare const useActive: (props: UseActiveProps) => { active: boolean; events: { onEnter: (...args: any[]) => any; onExit: (...args: any[]) => any; }; }; export default useActive;