{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "command-item",
  "type": "registry:ui",
  "title": "Command item",
  "description": "Row for command menus with a label, an optional keyboard shortcut in a kbd tag and an active highlight state. Use it to build custom command lists.",
  "dependencies": [],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/command-item.tsx",
      "type": "registry:ui",
      "target": "components/ui/command-item.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction CommandItem({\n  children,\n  shortcut,\n  active,\n  onSelect,\n  className,\n}: {\n  children: React.ReactNode\n  shortcut?: string\n  active?: boolean\n  onSelect?: () => void\n  className?: string\n}) {\n  return (\n    <button\n      type=\"button\"\n      data-slot=\"command-item\"\n      onClick={onSelect}\n      className={cn(\n        \"flex w-full items-center justify-between gap-3 rounded-lg px-2.5 py-2 text-left text-sm outline-none\",\n        active ? \"bg-accent/10 text-fg\" : \"text-fg hover:bg-sunken\",\n        \"focus-visible:ring-2 focus-visible:ring-accent\",\n        className\n      )}\n    >\n      <span>{children}</span>\n      {shortcut ? <kbd className=\"font-mono text-[10px] text-fg-muted\">{shortcut}</kbd> : null}\n    </button>\n  )\n}\nexport { CommandItem }\n"
    }
  ]
}
