UNPKG

@a11y/skip-navigation

Version:

Web component friendly skip navigation functionality.

41 lines (40 loc) 834 B
/** * Anchor that the skip button can skip to. * @attr {String} id - Optional ID that should be associated with the anchor when using the skip-button for attribute. */ declare class SkipAnchor extends HTMLElement { /** * Hooks up the component. */ /** * Hooks up the component. */ connectedCallback(): void; /** * Tears down the component. */ /** * Tears down the component. */ disconnectedCallback(): void; /** * Focuses the component. */ /** * Focuses the component. */ focus(): void; /** * Handles the focus in event. */ /** * Handles the focus in event. */ private onFocusIn; } declare global { interface HTMLElementTagNameMap { "skip-anchor": SkipAnchor; } } export { SkipAnchor };