Overlay
ConfirmDialog
A modal question before an action, opened from anywhere with useConfirm, that can default to the safe answer.
WAI-ARIA tested
Import
main.ts
import { ConfirmDialog } from '@vitral/vue';Severity
The icon and the accept button take the severity’s colour.
Without a header
The labels come from the locale and the dialog is named “Confirmation”.
API
Read from packages/vue/src/components/ConfirmDialog/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| group | string | Answers only the `useConfirm().require()` calls sent with the same `group`. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| message | (props: { message: ConfirmOptions }) | Replaces the message text; it still describes the dialog. |
| icon | (props: { message: ConfirmOptions }) | — |