Components / Command

Basic Usage

Provide an array of grouped items to the Command component. It handles search filtering natively.

Suggestions
Settings

Inside a Modal

Command is traditionally used inside a MayaModal. The modal acts as the palette overlay.

MayaCommand API

Prop / EventTypeDefaultDescription
groupsArray[]Array of group objects { heading, items: [{ label, shortcut, icon }] }.
placeholderString"Type a command or search..."Placeholder for the search input.
@selectEventEmitted when an item is clicked or selected via Enter key.
#emptySlotDisplayed when search yields no results.