# Command palette

Searchable list / command palette built on `cmdk`. Use inline (`<Command>`) for typeahead pickers, or wrapped in `<CommandDialog>` for a global cmd-K launcher. Items are scored client-side as the user types.

[View examples](https://marsam.rahhal.app/components/command) · [Agent index](https://marsam.rahhal.app/llms.txt)

**Import:** `@rahhal/ui/command`

**Category:** `overlays`

## Pieces

| part | role |
| --- | --- |
| Command | outer shell (or use \"CommandDialog\" for cmd-K modals) |
| CommandInput | search field with leading magnifier |
| CommandList | scrollable result list |
| CommandEmpty | shown when nothing matches |
| CommandGroup | group of related items (with optional `heading`) |
| CommandItem | single selectable row |
| CommandSeparator | visual divider between groups |
| CommandShortcut | end-aligned keyboard hint |
