@zag-js/dom-query
Version:
The dom helper library for zag.js machines
15 lines (12 loc) • 602 B
TypeScript
import { GetShadowRootOption } from './tabbable.js';
import { MaybeElement, MaybeElementOrFn } from './types.js';
import '@zag-js/types';
interface ProxyTabFocusOptions<T = MaybeElement> {
triggerElement?: T | undefined;
onFocus?: ((elementToFocus: HTMLElement) => void) | undefined;
onFocusEnter?: VoidFunction | undefined;
defer?: boolean | undefined;
getShadowRoot?: GetShadowRootOption | undefined;
}
declare function proxyTabFocus(container: MaybeElementOrFn, options: ProxyTabFocusOptions<MaybeElementOrFn>): () => void;
export { type ProxyTabFocusOptions, proxyTabFocus };