Component packs › Beacon › Shortcut Overlay

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.

Shortcut Overlay props

PropTypeDefaultDescription
scopeHTMLElementthe demo toolbarScope element whose [data-shortcut] controls get keycaps. Default: the demo toolbar.
onTrigger(key: string) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: holds the modifier and presses keys until touched.

Methods on the ref

Use it in React

import ShortcutOverlay from './ShortcutOverlay';

<ShortcutOverlay />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Beacon

Good for: Onboarding and product tours.