---
url: "https://vueda.dev/v3/reference/api/vue/CommandDialog.md"
title: "CommandDialog"
---

# CommandDialog

## Overview

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

Theme entry: [CommandDialog](/v3/reference/theming/keys/CommandDialog.md)

## Props

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="prop-themeOverride">themeOverride</span> | `Object` |  | `null` | A partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants. |
| <span id="prop-class">class</span> | `import('vue').HTMLAttributes['class']` |  | `undefined` | Additional CSS classes to apply to the root element. |
| <span id="prop-open">open</span> | `boolean` |  | `undefined` | The controlled open state. Can be bound with v-model:open. |
| <span id="prop-defaultOpen">defaultOpen</span> | `boolean` |  | `undefined` | The open state when initially rendered. Use when you do not need to control the open state. |
| <span id="prop-modal">modal</span> | `boolean` |  | `undefined` | When true, interaction with outside elements is disabled and only dialog content is visible to screen readers. |
| <span id="prop-title">title</span> | `string` |  | `"Command Palette"` | Accessible title shown in the dialog header. |
| <span id="prop-description">description</span> | `string` |  | `"Search for a command to run..."` | Accessible description shown in the dialog header. |

## Slots

### `default` {#slot-default}

Scoped slot.

## Events

| Name | Description |
| --- | --- |
| `update:open` | Emitted when the open state changes. |

[Full event reference](/v3/reference/api/vue/CommandDialog/events.md)

## Source

`client/lib/controls/command/CommandDialog.vue`
