UNPKG

@yuntijs/ui

Version:

☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps

11 lines (10 loc) 436 B
import React from 'react'; type RefOrDomOrId<T> = HTMLElement | string | React.Ref<T>; type F = any; /** * Passing a ref, id, or DOM element to obtain and set the focus state of the first non-disabled and non-readonly input or textarea. * @param {RefOrDomOrId} refOrDomOrId - 支持类型 HTMLElement | string | React.Ref<T> * @returns void */ export declare const useAutoFocus: (refOrDomOrId?: RefOrDomOrId<F>) => void; export {};