{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kbd",
  "title": "Kbd",
  "description": "Keycaps and keycap groups.",
  "registryDependencies": [
    "@khaeli/utils"
  ],
  "files": [
    {
      "path": "registry/khaeli/ui/kbd.tsx",
      "content": "import { cn } from \"@/lib/utils\"\n\nfunction Kbd({ className, ...props }: React.ComponentProps<\"kbd\">) {\n  return (\n    <kbd\n      data-slot=\"kbd\"\n      className={cn(\n        \"pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-xs bg-muted px-1 font-sans text-[0.625rem] font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction KbdGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <kbd\n      data-slot=\"kbd-group\"\n      className={cn(\"inline-flex items-center gap-1\", className)}\n      {...props}\n    />\n  )\n}\n\nexport { Kbd, KbdGroup }\n",
      "type": "registry:ui"
    }
  ],
  "css": {
    "@layer components": {
      "[data-slot=\"kbd\"]": {
        "height": "20px",
        "min-width": "20px",
        "padding": "0 5px !important",
        "border-radius": "6px !important",
        "font-size": "var(--type-caption) !important",
        "font-weight": "400 !important",
        "font-family": "var(--font-body) !important",
        "white-space": "nowrap"
      },
      "[data-slot=\"kbd\"]:not([data-slot=\"tooltip-content\"] *)": {
        "border": "1px solid transparent",
        "background-color": "var(--secondary) !important",
        "color": "var(--muted-foreground) !important",
        "box-shadow": "inset 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent)"
      },
      "@media (pointer: coarse) and (min-width: 768px) and (not (any-pointer: fine))": {
        "[data-slot=\"kbd\"], kbd": {
          "display": "none !important"
        }
      }
    }
  },
  "docs": "Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.",
  "type": "registry:ui"
}