Component packs › Mono › Inline Kbd

Inline Kbd

Shortcuts as real keycaps with your own computer's modifiers; press one and its caps go down with travel and shadow, and its row lights.

Inline Kbd is a keyboard shortcuts from Mono, a component pack with 6 code components: Code UI where changes move: diffs slide lines in and out, and the terminal runs its script. Price: $2 for the whole pack.

Built with: live keyboard, per-platform keys, keycap travel.

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.

Inline Kbd props

PropTypeDefaultDescription
shortcutsKbdShortcut[]Keys use "Mod" for ⌘ / Ctrl, plus "Shift", "Alt", "Enter" or a letter.
macbooleandetectedForce a platform. Default: detected.
listenbooleantrueListen to the real keyboard (window keydown). Default true.
labelstring
darkboolean
autoplaynumber | falseShowcase mode: plays one shortcut every N ms while visible.

Methods on the ref

Use it in React

import InlineKbd from './InlineKbd';

<InlineKbd />

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

More in Mono

Good for: Code blocks.