Action to be passed to the reducer, via a dispatch function. Manual dispatch calls are unecessary. Use RegisterAction or ClearAction from useSkipLinkActions instead.
const { register, clear } = useSkipLinkActions();
Resets the SkipLink[] state stored in WithSkipLinks
To be used as the value for an element ref.
<div ref={callback: RefFunction} />
Registers a SkipLink. Once the element is available in the DOM.
A callback to be used as the ref prop of an element. Once the element is available, the SkipLink will be registered, and the id applied to the given HTMLElement.
Screenreader friendly description of the section of the document the selected link with skip to.
The HTMLElement id to skip to.
Optional ref to the "skip to" HTMLElement. Required for accurate ordering of links.
Your application.
The optional initial state. Necessary for SSR.
Generated using TypeDoc
Action to be passed to the reducer, via a dispatch function. Manual dispatch calls are unecessary. Use RegisterAction or ClearAction from useSkipLinkActions instead.
const { register, clear } = useSkipLinkActions();