Files
infocom-systems-design/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.d.ts
2025-10-03 22:27:28 +03:00

8 lines
342 B
TypeScript

/**
* The `useRefocusableInput` hook exposes a function to re-focus the input element.
*
* This hook will also keep the cursor position into account to make sure the
* cursor is placed at the correct position as-if we didn't loose focus at all.
*/
export declare function useRefocusableInput(input: HTMLInputElement | null): () => void;