SkipLink

import SkipLink from "@kiwicom/orbit-components/lib/SkipLink";
<SkipLink
links={[
{
href: "#terms",
name: "Go to terms and conditions",
},
{
name: "Reguest refund",
onClick: handler,
},
]}
/>
  • content of the link
  • aria-label of nav
  • navigation

Props

NameTypeDescription
buttonLabelstringDescription for screen readers.
linkslinks[]An array specifying links to point to.

links

NameTypeDescription
namestringName of a action.
linkstringA href for linking to another page.
onClick() => void \| PromiseCallback for handling action.

Functional specs

  • SkipLink is visible only on focus.

Rationale