SkipNavigationButton
An off-screen button that lets keyboard users jump past the menu to the page content.
Installation
pnpm dlx shadcn@latest add @chelone/skip-navigation-buttonAn off-screen button that lets keyboard users jump past the menu to the page content.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — | |
| label | string | — | An i18n key (contains a dot) or literal text. Default `ra.navigation.skip_nav`. |
| ref | Ref<HTMLButtonElement> | — | |
| size | "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | — | |
| variant | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | — |