Skip to main content
You are viewing Pre-Alpha documentation.
Vuetify0 Logo

Dialog

A headless modal dialog component using the native HTML dialog element.

Renders element

Usage

The Dialog component leverages the native showModal() API for proper modal behavior including focus trapping, backdrop rendering, and escape key handling. It provides v-model support for open/closed state management.

Deactivate account

This will permanently deactivate your account.

Are you sure you want to deactivate your account? All of your data will be permanently removed from our servers. This action cannot be undone.

Anatomy

Anatomy
<script setup lang="ts">
  import { Dialog } from '@vuetify/v0'
</script>

<template>
  <Dialog.Root>
    <Dialog.Activator />

    <Dialog.Content>
      <Dialog.Title />

      <Dialog.Description />

      <Dialog.Close />
    </Dialog.Content>
  </Dialog.Root>
</template>

API Reference

Dialog.Root

Props

NameTypeDefaultDescription
namespacestring"v0:dialog"Namespace for dependency injection
idstringUnique identifier for the dialog (auto-generated if not provided)
modelValuebooleanfalse

Slots

NameSlot PropsDescription
defaultDialogRootSlotProps

Dialog.Activator

Props

NameTypeDefaultDescription
namespacestring"v0:dialog"Namespace for dependency injection

Slots

NameSlot PropsDescription
defaultDialogActivatorSlotProps

Dialog.Close

Props

NameTypeDefaultDescription
namespacestring"v0:dialog"Namespace for dependency injection

Slots

NameSlot PropsDescription
defaultDialogCloseSlotProps

Dialog.Content

Props

NameTypeDefaultDescription
namespacestring"v0:dialog"Namespace for dependency injection
closeOnClickOutsidebooleantrueClose dialog when clicking outside content

Events

NamePayloadDescription
cancel[e: Event]
close[e: Event]

Slots

NameSlot PropsDescription
defaultDialogContentSlotProps

Dialog.Description

Props

NameTypeDefaultDescription
namespacestring"v0:dialog"Namespace for dependency injection

Slots

NameSlot PropsDescription
defaultDialogDescriptionSlotProps

Dialog.Title

Props

NameTypeDefaultDescription
namespacestring"v0:dialog"Namespace for dependency injection

Slots

NameSlot PropsDescription
defaultDialogTitleSlotProps

© 2016-2026 Vuetify, LLC
Ctrl+/