Web only
Command
search-as-you-type list · CommandDialog for a ⌘K palette
<Command className="border-border max-w-sm rounded-xl border"> <CommandInput placeholder="Search or jump to…" /> <CommandList> <CommandEmpty>No results.</CommandEmpty> <CommandGroup heading="Pages"> <CommandItem> <LayoutGridIcon /> Dashboard </CommandItem> <CommandItem> <UsersIcon /> Customers </CommandItem> <CommandItem> <FileTextIcon /> Invoices </CommandItem> </CommandGroup> </CommandList></Command>API
<Command><CommandInput /><CommandList><CommandGroup heading><CommandItem /></CommandGroup></CommandList></Command>Get it
Already in every copy of the web kit:
import { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '@/components/ui/command';Details
- Exports
Command,CommandDialog,CommandInput,CommandList,CommandEmpty,CommandGroup,CommandItem- Packages
- cmdk@^1.1.1, cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/dialog
- Also searched as
- command palette, cmd k, search, combobox
- Upstream
- Unchanged from shadcn/ui. The kit publishes its own copy so it brings the kit's versions of the files it uses; shadcn/ui's would replace them.
- Registry JSON
- /r/web/command.json
Agents: the whole registry is at /llms.txt.