Command

Fast, composable, unstyled command menu for React. Built on top of cmdk.

Basic Command

A simple command menu with search and items.

Command Dialog

Press ⌘K or click the button to open the command palette.

Command Palette

Search for a command to run...

With Disabled Items

Some items can be disabled.

Installation

npx brutx@latest add command

The Command component requires the cmdk package:

npm install cmdk

Components

ComponentDescription
CommandThe root command container
CommandDialogCommand in a modal dialog
CommandInputThe search input field
CommandListContainer for command items
CommandEmptyShown when no results found
CommandGroupGroup of related items with heading
CommandItemIndividual selectable item
CommandSeparatorVisual separator between groups
CommandShortcutKeyboard shortcut display