Skip to content

CommandDialog

Overview

Wraps Command inside a modal dialog for use as a floating command palette.

Theme entry: CommandDialog

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
openbooleanundefinedThe controlled open state. Can be bound with v-model:open.
defaultOpenbooleanundefinedThe open state when initially rendered. Use when you do not need to control the open state.
modalbooleanundefinedWhen true, interaction with outside elements is disabled and only dialog content is visible to screen readers.
titlestring"Command Palette"Accessible title shown in the dialog header.
descriptionstring"Search for a command to run..."Accessible description shown in the dialog header.

Slots

default

Scoped slot.

Events

NameDescription
update:openEmitted when the open state changes.

Full event reference

Source

client/lib/controls/command/CommandDialog.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2