Skip to content
Forms

SearchCommand

An inline search box with grouped results under it. The match lights up in each result, a highlight glides with the arrow keys, and one key jumps to the box from anywhere.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ id, label, group?, hint?, keywords? }[]—Everything that can be found. keywords = extra words that also find it.
onSelect(item) => void—Called when a result is picked.
labelstring"Search"Name for screen readers.
placeholderstring"Search…"Text in the empty box.
hotkeystring"/"Key that jumps to the box. Empty string turns it off.
accentstring"#a78bfa"Highlight and match colour.
classNamestring"w-full max-w-md"Wrapper look.