UNPKG

rsuite

Version:

A suite of react components

17 lines (16 loc) 584 B
/// <reference types="react" /> interface FocusStateProps { target: React.RefObject<HTMLElement>; onEnter?: (node: HTMLElement) => void; onExit?: (node: HTMLElement) => void; } declare function useFocusState(props: FocusStateProps): { active: boolean; focusItemValue: string | number | null | undefined; setFocusItemValue: import("react").Dispatch<import("react").SetStateAction<string | number | null | undefined>>; triggerProps: { onEnter: (...args: any[]) => any; onExit: (...args: any[]) => any; }; }; export default useFocusState;