Skip Link

Skip to content link that stays visually hidden until focused, then appears fixed in the top corner so keyboard users can jump past navigation in any React app.

src/registry/ui/skip-link.tsx/r/skip-link.json

Installation#

bash
npx shadcn@latest add @minidev/skip-link

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/skip-link.json

Usage#

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

export function Example() {
  return (
    <SkipLink href="#main" />
  )
}

API reference#

Also accepts every prop of <a>, passed through to the root element.

Examples#

All navigation components

Learn more