{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "command-shortcuts",
  "title": "Command with shortcuts",
  "description": "Command with shortcuts, built from the command component.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "command"
  ],
  "files": [
    {
      "path": "registry/patterns/command-shortcuts/command-shortcuts.tsx",
      "content": "/**\n * Command with shortcuts - adapted for tealmac UI from the ReUI example \"c-command-2\"\n * (https://github.com/keenthemes/reui), MIT License, Copyright (c) 2025\n * Keenthemes Inc. The full licence text is in THIRD_PARTY_NOTICES.md.\n * Changes: tealmac UI import paths and theme tokens, lucide icons, logical\n * (RTL-safe) spacing and alignment, reduced-motion support and sample\n * content.\n */\n\"use client\"\n\nimport { useState } from \"react\"\nimport { CreditCardIcon, SettingsIcon, UserIcon } from \"lucide-react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Command,\n  CommandDialog,\n  CommandEmpty,\n  CommandGroup,\n  CommandInput,\n  CommandItem,\n  CommandList,\n  CommandShortcut,\n} from \"@/components/ui/command\"\n\nexport function CommandShortcuts() {\n  const [open, setOpen] = useState(false)\n\n  return (\n    <>\n      <Button onClick={() => setOpen(true)} variant=\"outline\">\n        Open Command\n      </Button>\n      <CommandDialog open={open} onOpenChange={setOpen}>\n        <Command className=\"**:data-[selected=true]:bg-muted **:data-selected:bg-transparent\">\n          <CommandInput placeholder=\"Type a command or search...\" />\n          <CommandList>\n            <CommandEmpty>No results found.</CommandEmpty>\n            <CommandGroup heading=\"Settings\">\n              <CommandItem>\n                <UserIcon />\n                <span>Profile</span>\n                <CommandShortcut>⌘P</CommandShortcut>\n              </CommandItem>\n              <CommandItem>\n                <CreditCardIcon />\n                <span>Billing</span>\n                <CommandShortcut>⌘B</CommandShortcut>\n              </CommandItem>\n              <CommandItem>\n                <SettingsIcon />\n                <span>Settings</span>\n                <CommandShortcut>⌘S</CommandShortcut>\n              </CommandItem>\n            </CommandGroup>\n          </CommandList>\n        </Command>\n      </CommandDialog>\n    </>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}