{ "$schema": "https://blode.co/ui/schema/registry-item.json", "name": "command", "title": "Command", "author": "Matthew Blode", "description": "A command palette for fast, keyboard-driven searching and navigation.", "dependencies": ["cmdk"], "registryDependencies": ["dialog"], "files": [ { "path": "ui/command.tsx", "content": "\"use client\";\n\nimport { SearchIcon } from \"blode-icons-react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"@/components/ui/dialog\";\n\nconst Command = ({ className, ...props }: React.ComponentProps) => (\n \n);\n\nconst CommandDialog = ({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n title?: string;\n description?: string;\n children?: React.ReactNode;\n className?: string;\n showCloseButton?: boolean;\n}) => (\n \n \n {title}\n {description}\n \n \n \n {children}\n \n \n \n);\n\nconst CommandInput = ({\n className,\n ...props\n}: React.ComponentProps) => (\n
\n \n \n
\n);\n\nconst CommandList = ({\n className,\n ...props\n}: React.ComponentProps) => (\n \n);\n\nconst CommandEmpty = ({ ...props }: React.ComponentProps) => (\n \n);\n\nconst CommandGroup = ({\n className,\n ...props\n}: React.ComponentProps) => (\n \n);\n\nconst CommandSeparator = ({\n className,\n ...props\n}: React.ComponentProps) => (\n \n);\n\nconst CommandItem = ({\n className,\n ...props\n}: React.ComponentProps) => (\n \n);\n\nconst CommandShortcut = ({ className, ...props }: React.ComponentProps<\"span\">) => (\n \n);\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n};\n", "type": "registry:ui", "target": "" } ], "type": "registry:ui" }