Component packs › Beacon › Shortcut Overlay
Hold ⌘ or Ctrl and keycaps rise beside every control one after another; press a shortcut and its keycap goes down.
Shortcut Overlay is a keyboard shortcuts from Beacon, a component pack with 8 components: Product tour, onboarding and feedback components that guide without nagging. Price: $2 for the whole pack.
Built with: data-shortcut, staggered springs, touch button.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
scope | HTMLElement | the demo toolbar | Scope element whose [data-shortcut] controls get keycaps. Default: the demo toolbar. |
onTrigger | (key: string) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: holds the modifier and presses keys until touched. |
show(v: boolean): voiddestroy(): voidimport ShortcutOverlay from './ShortcutOverlay';
<ShortcutOverlay />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Onboarding and product tours.