{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shortcut-cheat-sheet",
  "type": "registry:ui",
  "title": "Shortcut cheat sheet",
  "description": "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.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/kbd.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/shortcut-cheat-sheet.tsx",
      "type": "registry:ui",
      "target": "components/ui/shortcut-cheat-sheet.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\nimport { Kbd } from \"@/components/ui/kbd\"\n\ntype Row = { keys: string[]; action: string }\n\nfunction ShortcutCheatSheet({\n  rows = [\n    { keys: [\"⌘\", \"K\"], action: \"Command palette\" },\n    { keys: [\"⌘\", \"⇧\", \"P\"], action: \"Switch project\" },\n    { keys: [\"G\", \"I\"], action: \"Go to inbox\" },\n    { keys: [\"?\"], action: \"Show shortcuts\" },\n  ],\n  className,\n}: {\n  rows?: Row[]\n  className?: string\n}) {\n  return (\n    <div data-slot=\"shortcut-cheat-sheet\" className={cn(\"overflow-hidden rounded-xl border border-border bg-surface\", className)}>\n      <div className=\"border-b border-border bg-sunken px-4 py-2.5\">\n        <p className=\"text-xs font-medium tracking-[0.01em] text-fg-muted uppercase\">Keyboard shortcuts</p>\n      </div>\n      <ul className=\"divide-y divide-border\">\n        {rows.map((r) => (\n          <li key={r.action} className=\"flex items-center justify-between gap-4 px-4 py-2.5\">\n            <span className=\"text-sm text-fg\">{r.action}</span>\n            <span className=\"flex items-center gap-1\">\n              {r.keys.map((k) => (\n                <Kbd key={k}>{k}</Kbd>\n              ))}\n            </span>\n          </li>\n        ))}\n      </ul>\n    </div>\n  )\n}\nexport { ShortcutCheatSheet }\n"
    }
  ]
}
