Skip to content
GitHub

Command

Searchable command input with filtering.

Linear⌘L
Figma⌘F
Slack⌘S
YouTube⌘Y
Raycast⌘R
Settings⌘,
Help⌘?
About⌘I
Feedback⌘F
Support⌘S
Updates⌘U
Logout⌘L
Sign out⌘O
Sign in⌘I

Installation

Usage

Examples

With Dialog

Use <CommandDialog />, <CommandDialogTrigger />, and <CommandDialogContent /> for the modal pattern.

Groups

Group related items with <CommandGroup /> and the heading prop.

Apple
Banana
Cherry
United States
United Kingdom
Germany

Shortcuts

Display keyboard shortcuts next to items with <CommandShortcut />.

New File⌘N
Save⌘S
Copy⌘C
Paste⌘V
Undo⌘Z
Find⌘F

Add hints or actions in the footer with <CommandFooter />.

Settings⌘,
Keyboard Shortcuts⌘K
Help⌘?
Select
Navigate

API Reference

Command

Root component.

CommandDialog

Dialog root for the command palette. Same as Dialog.

CommandDialogTrigger

Opens the command palette on click. Often uses a search icon.

CommandDialogContent

Container for the command palette inside the dialog.

CommandInput

Search input with icon. Uses InputGroup for layout.

CommandContent

Scrollable content container for the command list.

CommandList

List container for command items.

CommandEmpty

Content when no items match the filter.

CommandGroup

Groups related items.

CommandGroupLabel

Label for a group.

CommandItem

A single command or action in the palette.

CommandSeparator

Visual divider between groups or items. Uses <Separator />.

CommandShortcut

Keyboard shortcut hint shown next to a command.

CommandFooter

Footer area for hints, tips, or extra actions.


For a complete list of props, see the Ark UI documentation.