Skip to content

Dialog

Modal dialog for forms, confirmation, or custom content.

Basic Usage

loading
loading

Header Type

Use type to customize the dialog header color.

loading

API

PropDescriptionTypeDefault
modelValueWhether visibleboolean-
titleTitlestring-
typeHeader color type'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info''default'
widthWidthstring | number'500px'
modalWhether to show overlayboolean
closeOnClickModalWhether to close on overlay clickboolean
closeOnPressEscapeWhether to close on Escboolean
showCloseWhether to show close buttonboolean
destroyOnCloseDestroy content on closeboolean

Slots: default (content), header, footer.

Events: update:modelValue, open, close, opened.

MIT License