{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kbd",
  "title": "Kbd",
  "author": "VenusUI",
  "description": "Keyboard keys and key combinations using the semantic kbd element.",
  "files": [
    {
      "path": "registry/default/ui/kbd.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface KbdProps extends React.ComponentProps<\"kbd\"> {\n  /** Render as a pressed-looking key (raised bottom edge). */\n  raised?: boolean\n}\n\n/** A keyboard key, e.g. ⌘ or K. Uses the semantic `<kbd>` element. */\nfunction Kbd({ raised = true, className, ...props }: KbdProps) {\n  return (\n    <kbd\n      data-slot=\"kbd\"\n      className={cn(\n        \"inline-flex h-6 min-w-6 items-center justify-center rounded-md border bg-muted px-1.5 font-mono text-xs font-medium text-foreground\",\n        raised && \"border-b-2\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/**\n * A key combination such as ⌘ + K. Each key is its own `<kbd>` inside a\n * parent `<kbd>`, which is how HTML represents key combinations.\n */\nfunction KbdCombo({ keys, className }: { keys: string[]; className?: string }) {\n  return (\n    <kbd data-slot=\"kbd-combo\" className={cn(\"inline-flex items-center gap-1 font-sans\", className)}>\n      {keys.map((key, index) => (\n        <React.Fragment key={`${key}-${index}`}>\n          {index > 0 ? (\n            <span aria-hidden=\"true\" className=\"text-xs text-muted-foreground\">\n              +\n            </span>\n          ) : null}\n          <Kbd>{key}</Kbd>\n        </React.Fragment>\n      ))}\n    </kbd>\n  )\n}\n\nexport { Kbd, KbdCombo, type KbdProps }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "data-display"
  ],
  "type": "registry:ui"
}