{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kbd",
  "title": "Kbd",
  "description": "A key or key combination shown as a small keycap, alone or in a group.",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [
    "@corsair-ui/utils"
  ],
  "files": [
    {
      "path": "registry/default/ui/kbd.tsx",
      "content": "import { cva, type VariantProps } from \"class-variance-authority\";\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"@/registry/default/lib/utils\";\n\nconst kbdVariants = cva(\n  [\n    \"bg-muted text-muted-foreground inline-flex w-fit shrink-0 items-center justify-center gap-1 rounded border px-1.5 font-mono text-xs font-medium whitespace-nowrap select-none\",\n    \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3\",\n  ],\n  {\n    variants: {\n      size: {\n        sm: \"h-5 min-w-5 px-1 text-[0.625rem]\",\n        default: \"h-6 min-w-6\",\n      },\n    },\n    defaultVariants: {\n      size: \"default\",\n    },\n  }\n);\n\ninterface KbdProps extends ComponentProps<\"kbd\">, VariantProps<typeof kbdVariants> {}\n\n/**\n * A key or key combination to press, shown as a small keycap. It is a native\n * `<kbd>`, so screen readers read its text as is. A symbol alone (⌘, ⇧) is\n * read by its Unicode name or not at all: add the word in an `sr-only` span\n * (`<Kbd>⌘<span className=\"sr-only\">Command</span></Kbd>`). Nothing animates.\n *\n * @example\n * <p>\n *   Press <Kbd>Esc</Kbd> to close.\n * </p>\n */\nfunction Kbd({ className, size, ...props }: KbdProps) {\n  return (\n    <kbd\n      data-slot=\"kbd\"\n      data-size={size ?? \"default\"}\n      className={cn(kbdVariants({ size }), className)}\n      {...props}\n    />\n  );\n}\n\n/**\n * Keys pressed together, laid out in a row. Put the separator you want\n * between the keys yourself (`+`, or nothing).\n *\n * @example\n * <KbdGroup>\n *   <Kbd>Ctrl</Kbd>\n *   <span>+</span>\n *   <Kbd>K</Kbd>\n * </KbdGroup>\n */\nfunction KbdGroup({ className, ...props }: ComponentProps<\"span\">) {\n  return (\n    <span\n      data-slot=\"kbd-group\"\n      className={cn(\"inline-flex items-center gap-1\", className)}\n      {...props}\n    />\n  );\n}\n\nexport { Kbd, KbdGroup, kbdVariants, type KbdProps };\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}