{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kbd",
  "type": "registry:ui",
  "title": "Kbd",
  "description": "A key cap for showing a keyboard key or a shortcut.",
  "categories": [
    "ui"
  ],
  "dependencies": [],
  "registryDependencies": [
    "@rivier-ui/theme",
    "@rivier-ui/cn"
  ],
  "files": [
    {
      "path": "registry/ui/kbd.tsx",
      "type": "registry:ui",
      "target": "components/ui/kbd.tsx",
      "content": "/**\n * @name kbd\n * @category ui\n * @description A key cap for showing a keyboard key or a shortcut.\n * @when Naming a key the reader can press: in a menu item, a tooltip, a hint under a field. Wrap a combination in KbdGroup, one Kbd per key.\n * @example\n * <Kbd>Esc</Kbd>\n * <KbdGroup>\n *   <Kbd>Ctrl</Kbd>\n *   <Kbd>K</Kbd>\n * </KbdGroup>\n */\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"@/lib/cn\";\n\nexport function Kbd({ className, ...props }: ComponentProps<\"kbd\">) {\n  return (\n    <kbd\n      data-slot=\"kbd\"\n      className={cn(\n        \"inline-flex h-5 min-w-5 items-center justify-center rounded-control border border-border-strong bg-muted px-1 font-mono text-xs font-medium whitespace-nowrap text-foreground [&_svg]:size-3\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\n/** Keys pressed together. Renders an outer kbd, which is the correct markup for a combination. */\nexport function KbdGroup({ className, ...props }: ComponentProps<\"kbd\">) {\n  return <kbd data-slot=\"kbd-group\" className={cn(\"inline-flex items-center gap-1 font-mono\", className)} {...props} />;\n}\n"
    }
  ],
  "meta": {
    "category": "ui",
    "when": "Naming a key the reader can press: in a menu item, a tooltip, a hint under a field. Wrap a combination in KbdGroup, one Kbd per key.",
    "example": "<Kbd>Esc</Kbd>\n<KbdGroup>\n  <Kbd>Ctrl</Kbd>\n  <Kbd>K</Kbd>\n</KbdGroup>",
    "client": false
  }
}
