ortaui
  1. Components
  2. 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/command

Examples#

Inline#

No results found.
Calendar
Search emoji
Calculator
Profile ⌘P
Billing ⌘B
Settings ⌘S

Dialog (⌘J)#

API reference#

PropTypeDefaultDescription
filter(value, search, keywords) => boolean-Command: replace the default contains-match.
shouldFilter / loopbooleantrueCommand: turn filtering or wrap-around off.
value / keywordsstring / string[]-CommandItem: matched text (defaults to the item's text) and extra terms.
onSelect(value: string) => void-CommandItem: runs on click or Enter.
classNamestring-Merged with the component classes via cn().