useKeyboardHint — Arrow-key Hint
- from @astryx
- by Astryx
A custom five-star rating with one Tab stop calls useKeyboardHint directly: tabbing into it shows a "← → to navigate" hint, the first arrow press dismisses it, and tabbing back in does not show it again.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @astryx/example-use-keyboard-hint-arrow-key-hintRegistry dependencies0
The CLI adds no other registry items with this one.
