Bubble menu
A round button that fans out tinted pill bubbles with a springy stagger; aria-expanded, Escape closes and returns focus.
What it is for
Compact site menu in a corner of a hero, card or app frame (fills a position:relative parent).
Use it
1 · site.json
"effects": { "components": ["bubble-menu"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components bubble-menu2 · import it
import { BubbleMenu } from '@/components/fx/ui';Files
components/fx/ui/BubbleMenu.tsxcomponents/fx/ui/_menus-kit.tsxui-bubble-menu.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.