Appearance
OverlayDialog
A confirm or alert dialog that answers with a form method dialog.
ts
import { OverlayDialog } from '@zairakai/vue-components/Overlay'Usage
vue
<OverlayDialog />Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | ||
class | string | ||
modelValue | boolean | undefined | |
title | string | ||
message | string | ||
confirmLabel | string | 'OK' | |
cancelLabel | string | 'Cancel' | |
alert | boolean | false | An alert has only one button: the user can only acknowledge it. |
Events
| Name | Description |
|---|---|
update:modelValue | |
confirm | |
cancel | |
close |
Slots
| Name | Description |
|---|---|
default |
See Theming for the class hooks and the data-* state of the components.