{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kbd",
  "type": "registry:ui",
  "title": "Kbd",
  "description": "Keyboard keys and shortcut groups for hints and footers.",
  "categories": [
    "actions"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/kbd.tsx",
      "type": "registry:ui",
      "target": "components/ui/kbd.tsx",
      "content": "import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/sprout/classes';\n\nexport const kbdVariantNames = ['default', 'outline'] as const;\n\nexport type KbdVariant = (typeof kbdVariantNames)[number];\n\nexport interface KbdProps extends ComponentProps<'kbd'> {\n  variant?: KbdVariant;\n}\n\nexport function Kbd({ variant = 'default', className, ...props }: KbdProps) {\n  return <kbd data-slot=\"kbd\" data-variant={variant} className={cn('sprout-kbd', className)} {...props} />;\n}\n\nexport type KbdGroupProps = ComponentProps<'kbd'>;\n\nexport function KbdGroup({ className, ...props }: KbdGroupProps) {\n  return <kbd data-slot=\"kbd-group\" className={cn('sprout-kbd-group', className)} {...props} />;\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-kbd": {
        "box-sizing": "border-box",
        "border-radius": "calc(var(--sprout-radius-control) - 2px)",
        "background": "var(--sprout-secondary)",
        "width": "fit-content",
        "min-width": "20px",
        "height": "20px",
        "color": "var(--sprout-muted)",
        "font-family": "var(--sprout-font)",
        "font-size": "var(--sprout-text-xs)",
        "white-space": "nowrap",
        "vertical-align": "middle",
        "user-select": "none",
        "pointer-events": "none",
        "border": "1px solid #0000",
        "flex-shrink": "0",
        "justify-content": "center",
        "align-items": "center",
        "gap": "4px",
        "padding-inline": "4px",
        "font-style": "normal",
        "font-weight": "500",
        "line-height": "1",
        "display": "inline-flex"
      },
      ".sprout-kbd[data-variant=\"outline\"]": {
        "border-color": "var(--sprout-line)",
        "background": "var(--sprout-surface)"
      },
      ".sprout-kbd :where(svg)": {
        "flex-shrink": "0",
        "width": "12px",
        "height": "12px"
      },
      ".sprout-kbd-group": {
        "font": "inherit",
        "vertical-align": "middle",
        "align-items": "center",
        "gap": "4px",
        "display": "inline-flex"
      },
      "@media (forced-colors: active)": {
        ".sprout-kbd": {
          "border-color": "canvastext"
        }
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-kbd": {
          "transition": "background-color var(--sprout-motion-fast) var(--sprout-motion-ease),\n        border-color var(--sprout-motion-fast) var(--sprout-motion-ease),\n        color var(--sprout-motion-fast) var(--sprout-motion-ease)"
        }
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/kbd/",
  "meta": {
    "source": "packages/sprout/src/components/kbd.tsx"
  }
}
