SkipLink
The first focusable element on the page. It is visually hidden (with the
shared visuallyHidden class) until it receives focus, then shows with the
focus ring. Activating it moves focus to the
target, which must be focusable (for example a region with tabIndex={-1}).
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { SkipLink } from "@mapcairn/map";
function SkipLink(input: SkipLinkProps): JSX.Element;
Parameters
{ targetId, children, className, onClick, ...rest }input(SkipLinkProps)
Returns
JSX.Element
Remarks
The native hash jump is only prevented when the target exists, so the link still works as an ordinary anchor if the target is missing.