Pill nav
A rounded pill navigation bar with circle-fill hover that folds into a menu button with a contained dropdown when narrow.
What it is for
Floating site header.
Use it
1 · site.json
"effects": { "components": ["pill-nav"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components pill-nav2 · import it
import { PillNav } from '@/components/fx/ui';Files
components/fx/ui/PillNav.tsxcomponents/fx/ui/_menus-kit.tsxui-pill-nav.cssstylesui-menus-stage.cssstyles
Accessibility
- Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
- Reduced motion. With
prefers-reduced-motionon, animation settles to its finished state at once. - Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.