Command

A fast, composable, unstyled command menu.

When To Use

Used to provide a global search and command execution interface, allowing users to quickly access features and navigate via keyboard shortcuts.

Usage

Suggestions
Settings
↑ ↓ to navigate Enter to select Esc to close

API Reference

Command

Property
Description
Type
Default

placeholder

Placeholder text for the search input. string "Type a command or search..."

shortcut

The visual shortcut hint on the trigger button. string "⌘K"

CommandGroup

Property
Description
Type
Default

heading

The heading title for the command group. string -

CommandItem

Property
Description
Type
Default

label

The display label for the item. string -

icon

Optional icon name. IconName -

shortcut

Optional keyboard shortcut to display. string[] -

onSelect

The action or URL to execute when selected. string -

id

The unique identifier for the command item. string -