Command
Fast, composable, unstyled command menu for React. (Adapted for Maya UI in Vue)
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 / Event | Type | Default | Description |
|---|---|---|---|
groups | Array | [] | Array of group objects { heading, items: [{ label, shortcut, icon }] }. |
placeholder | String | "Type a command or search..." | Placeholder for the search input. |
@select | Event | — | Emitted when an item is clicked or selected via Enter key. |
#empty | Slot | — | Displayed when search yields no results. |