Shortcut Cheat Sheet

Keyboard shortcut cheat sheet listing actions next to their key combinations rendered as Kbd keycaps. Pass your own rows or use the default command palette set.

src/registry/ui/shortcut-cheat-sheet.tsx/r/shortcut-cheat-sheet.json

Keyboard shortcuts

  • Command palette⌘K
  • Switch project⌘⇧P
  • Go to inboxGI
  • Show shortcuts?

Sheet

Installation#

bash
npx shadcn@latest add @minidev/shortcut-cheat-sheet

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/shortcut-cheat-sheet.json

Usage#

tsx
import { ShortcutCheatSheet } from "@/components/ui/shortcut-cheat-sheet"

export function Example() {
  return (
    <ShortcutCheatSheet />
  )
}

API reference#

ShortcutCheatSheet props
PropTypeDefault
rowsRow[][ { keys: ["⌘", "K"], action: "Comman...
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All Developer tool UI components for React

Learn more