API and Development
Command wraps cmdk with styled building blocks: CommandInput (search Input with lead icon), CommandList, CommandGroup (optional heading, value, forceMount), CommandItem (Interactable row with keywords, onSelect), CommandSeparator, and CommandEmpty. Set shouldFilter={false} when filtering happens on the server.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | Callback when the selected value changes |
|
| — | Whether to filter items based on search. Set to false for server-side filtering. |
|
| — | When there is no search input, set to |
|
| — | The currently selected item value |
Interactive examples and edge cases for this component are in Storybook.
Name | Type | Default | Description |
|---|---|---|---|
|
|
| Item id. |
|
|
| Extra search tokens. |
|
|
| Chosen callback. |
|
|
| Non-interactive row. |
On this page