SkipToContent
An internal navigation component that help users move around a page.
Basic Usage
import { SkipToContent } from '@krakentech/coral';
const CONTENT_ID = 'main-content';
<SkipToContent id={CONTENT_ID} />
<main id={CONTENT_ID}>Main content</main>Click here and then press tab to activate the SkipToContent atom.
Properties
id
Declare a constant for the ID, which can be used as a prop for both the Element and the SkipToContent component.
const CONTENT_ID = 'alternative-id';
<SkipToContent id={CONTENT_ID} />label
<SkipToContent id={CONTENT_ID} label="Alternative label" />Full API
Last updated on