UNPKG

@wordpress/dom

Version:
18 lines 855 B
/** * Returns all focusable elements within a given context. * * @param {Element} context Element in which to search. * @param {Object} options * @param {boolean} [options.sequential] If set, only return elements that are * sequentially focusable. * Non-interactive elements with a * negative `tabindex` are focusable but * not sequentially focusable. * https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute * * @return {HTMLElement[]} Focusable elements. */ export function find(context: Element, { sequential }?: { sequential?: boolean | undefined; }): HTMLElement[]; //# sourceMappingURL=focusable.d.ts.map