Overlay
ConfirmPopup
A confirmation anchored to the element it is about, opened with useConfirm and holding focus until answered.
WAI-ARIA tested
Import
main.ts
import { ConfirmPopup } from '@vitral/vue';Basic
Last answer: —
API
Read from packages/vue/src/components/ConfirmPopup/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` and a `target`. |
| placement | OverlayPlacement | Where it opens relative to the target. Defaults to `'bottom'`. |
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; it still describes the popup. |
| icon | (props: { message: ConfirmOptions }) | — |