UNPKG

@gechiui/dom

Version:
33 lines 1.09 kB
/** * Returns true if the specified element is tabbable, or false otherwise. * * @param {Element} element Element to test. * * @return {boolean} Whether element is tabbable. */ export function isTabbableIndex(element: Element): boolean; /** * @param {Element} context * @return {Element[]} Tabbable elements within the context. */ export function find(context: Element): Element[]; /** * Given a focusable element, find the preceding tabbable element. * * @param {Element} element The focusable element before which to look. Defaults * to the active element. */ export function findPrevious(element: Element): Element | undefined; /** * Given a focusable element, find the next tabbable element. * * @param {Element} element The focusable element after which to look. Defaults * to the active element. */ export function findNext(element: Element): Element | undefined; export type MaybeHTMLInputElement = Element & { type?: string; checked?: boolean; name?: string; }; //# sourceMappingURL=tabbable.d.ts.map