UNPKG

@kwiz/fluentui

Version:
9 lines (8 loc) 328 B
/** better auto-focus that actually works. use the ref on the element you wish to focus. * focus set initially, and then again on a timeout - default is 200ms timeout. send 0 to skip the timeout */ export declare function useAutoFocusEX({ timeout }?: { timeout?: number; }): { set: (newValue: HTMLElement) => void; };