CommandItem
Renders a single command row with icon, label (with match highlighting), description, shortcut badge, loading spinner, and disabled state. Used internally by CommandPalette; also available for custom layouts.
Props
command
Command
The command to render.
active
boolean
Whether this row is keyboard-selected.
matches
Array<[number, number]>
Highlight ranges from the fuzzy search engine.
itemId
string
id attribute for ARIA aria-activedescendant.
loadingCommandId
string | null
ID of the currently executing command; shows a spinner.
Emits
execute
User clicked or pressed Enter on this item.
activate
User hovered over this item.