Components/Command
Command
Composable, searchable command palette — fast keyboard-first access to actions, navigation, and search.
Suggestions
Calendar
Search emoji
Calculator
Settings
Profile ⌘P
Settings ⌘,
Installation
npx ajaxui add commandNotes
Anatomy
<Command> // input + filtering owner
<CommandInput/>
<CommandList>
<CommandEmpty/> // shown when nothing matches
<CommandGroup heading=...>
<CommandItem/> // typed by .value
</CommandGroup>
<CommandSeparator/>
</CommandList>
</Command>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| filter | (search: string, value: string) => boolean | — | Custom filter for items. |
| onSelect | (value: string) => void (on Item) | — | — |
| disabled | boolean (on Item) | — | — |