Skip to content

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

Anatomy

Usage

Examples

With Dialog

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

Scrollable

Scrollable command menu with multiple items.

Angular
Astro
Ember
Gatsby
Next.js
Nuxt.js
React
Remix
Solid
Svelte
Vue.js
Alpine.js
jQuery
Lit
Preact
Qwik
Stencil
Blitz.js
Redwood
T3 Stack
TanStack Start
Wasp

API Reference

Command

Root component.

CommandDialog

Dialog root for the command palette. Same as Dialog.

CommandDialogTrigger

Opens the command palette on click. Same as DialogTrigger.

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.