Components › Navigation

Skip link

Let keyboard users bypass repeated navigation and jump to content.

Installation

npx plankui@latest add skip-link

Usage

import { SkipLink } from "@/components/ui/skip-link";

<SkipLink href="#main-content">Skip to content</SkipLink>

API reference

PropTypeDefaultDescription
hrefstringrequiredFragment ID of a focusable target, such as a main element with tabIndex={-1}.
childrenReactNodeLabel shown when focused.

View the source on GitHub