ConfirmModal
moleculesYes/no dialog on Modal: an async onconfirm keeps it open and busy, a rejection shows the error so the user can retry or cancel.
Delete a project with typed confirmation
tone="danger", children host an Input that must match the name; the async onconfirm busies the dialog until it settles.
Tones
tone colours the confirm button and, for danger/warn/info, the Modal header; message is the one-line body.
Async confirm, failure and external busy
a Promise from onconfirm shows loading and closes on resolve; a rejection surfaces its message and keeps the dialog open; busy forces the working state.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
open bindable | boolean | false | |
title required | string | — | |
message | string | — | |
children | Snippet | — | |
confirmLabel | string | 'Confirm' | |
cancelLabel | string | 'Cancel' | |
tone | Tone | 'primary' | 'primary' | `primary` is a legacy alias of `accent`. `danger` fills the confirm button with --danger. |
busy | boolean | false | |
onconfirm required | () => void | Promise<void> | — | |
oncancel | () => void | — | |
class | string | '' | |
style | string | '' | |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |