@zag-js/dom-query
Version:
The dom helper library for zag.js machines
11 lines (9 loc) • 381 B
text/typescript
interface NavigateOptions {
key?: string;
orientation?: "both" | "vertical" | "horizontal";
loop?: boolean;
dir?: "ltr" | "rtl";
}
declare function navigate<T extends HTMLElement>(items: T[], current: T | null, options?: NavigateOptions): T | null;
declare function clickIfLink(el: HTMLAnchorElement): void;
export { type NavigateOptions, clickIfLink, navigate };