Props
| Name | Description |
|---|---|
pt Type: (PtCompoundOf<"", { readonly parts: readonly ["root", "sheet", "header", "title", "content", "text", "footer", "close", "action", "ok", "cancel"]; readonly states: readonly ["open", "fullscreen"]; readonly wide: readonly ["open", "fullscreen"]; readonly except: { readonly action: readonly ["open"]; readonly ok: readonly ["open"]; readonly cancel: readonly ["open"]; }; readonly variant: { readonly names: readonly ["default", "destructive"]; readonly option: "confirmVariants"; }; }> & PtMap<BbConfirmPtPart, "default" | "open" | "destructive" | "fullscreen">) | Passthrough, object form: the same keys as the |
pt:<part> Type: PtValue | Passthrough, attribute form: one attribute per part, Not attributes on a tag: there is no |
Renamed and removed
Names from v2 and from earlier 3.0 betas that no longer work, and what to write instead.
- option
actions[].iconactions[].iconOnlyfails silentlyAn icon-only button writes its label and icon:
{ text: 'Close', 'prepend:icon': 'lucide:x', iconOnly: true }(alsook/cancel); the label is the accessible name. - option
dismissAsNodismissAsCancelfails silentlyA
confirm()option: backdrop, Escape and the ✕ runcancel.onClickunlessdismissAsCancel: false. - option
nocancelfails silentlyA
confirm()option:confirm({ cancel: false }); same values, plustruefor the default label. - option
yesokfails silentlyA
confirm()option:confirm({ ok: 'Delete' }); same values, plustruefor the default label.