UNPKG

reactuals

Version:

A useful package providing a collection of 50+ React hooks and utilities to simplify React development.

10 lines (9 loc) 389 B
/// <reference types="react" /> export declare function useElementFocus<T extends HTMLElement>(): { readonly ref: import("react").RefObject<T | null>; readonly focusOnMount: import("react").RefObject<boolean>; readonly focus: () => void; readonly blur: () => void; readonly select: () => void; readonly scrollIntoView: (options?: ScrollIntoViewOptions) => void; };