Component packs › Mono › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
shortcuts | KbdShortcut[] | Keys use "Mod" for ⌘ / Ctrl, plus "Shift", "Alt", "Enter" or a letter. | |
mac | boolean | detected | Force a platform. Default: detected. |
listen | boolean | true | Listen to the real keyboard (window keydown). Default true. |
label | string | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: plays one shortcut every N ms while visible. |
press(i: number): voiddestroy(): voidimport InlineKbd from './InlineKbd';
<InlineKbd />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Code blocks.