kit
    Preparing search index...

    Function useFocus

    • Type Parameters

      • T extends HTMLElement = HTMLInputElement

      Returns readonly [RefObject<T | null>, () => void]

      const [inputRef, focusInput] = useFocus();
      const [selectRef, focusSelect] = useFocus<HTMLSelectElement>();