UNPKG

@a11y/skip-navigation

Version:

Web component friendly skip navigation functionality.

18 lines (17 loc) 504 B
/** * Set anchor and map it to the id. If no ID is provided the anchor will be mapped to an empty string. * @param $anchor * @param id */ declare function setAnchor($anchor: HTMLElement, id?: string | null): void; /** * Removes the anchor with the given ID. * @param id */ declare function removeAnchor(id?: string | null): void; /** * Focuses the anchor with the given ID. * @param id */ declare function focusAnchor(id?: string | null): void; export { setAnchor, removeAnchor, focusAnchor };