- Components
- Overlays
Command
Search-and-run list on plain React plus the sliding highlight. cmdk depends on Radix, so it is not used. Arrow keys, Home, End and Enter work from the input.
Installation#
npx shadcn add @ortaui/commandExamples#
Inline#
Dialog (⌘J)#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| filter | (value, search, keywords) => boolean | - | Command: replace the default contains-match. |
| shouldFilter / loop | boolean | true | Command: turn filtering or wrap-around off. |
| value / keywords | string / string[] | - | CommandItem: matched text (defaults to the item's text) and extra terms. |
| onSelect | (value: string) => void | - | CommandItem: runs on click or Enter. |
| className | string | - | Merged with the component classes via cn(). |