MeldUI

Command

A command palette for searching and executing actions, similar to Cmd+K interfaces.

Usage

Command Dialog

Use CommandDialog to render the command palette in a modal dialog:

Props

PropTypeDefaultDescription
modelValuestring''The current search value. Use with v-model.

Events

EventPayloadDescription
update:modelValuestringEmitted when the search value changes.
highlight{ ref: HTMLElement, value: string } | undefinedEmitted when the highlighted element changes.

Sub-components

CommandDialog

Command palette rendered in a modal dialog.

PropTypeDefaultDescription
titlestring'Command Palette'Dialog title for accessibility.
descriptionstring'Search for a command to run...'Dialog description for accessibility.

CommandInput

Search input with magnifying glass icon.

CommandList

Scrollable list container for items and groups.

CommandGroup

Groups related items under a heading.

PropTypeDefaultDescription
headingstring-Group heading text.

CommandItem

Selectable command item.

PropTypeDefaultDescription
valuestring-Value used for filtering and selection.
disabledboolean-Disable this item.

CommandEmpty

Shown when no items match the search query.

CommandSeparator

Visual divider between groups.

CommandShortcut

Displays a keyboard shortcut hint aligned to the right.