Popconfirm
Shows a confirmation bubble next to the trigger element, commonly used before destructive actions like deletion.
Basic usage
Basic usage
Controlled visibility
The open attribute is controlled: external buttons set/remove open to toggle the bubble (clicking outside / Esc / OK / cancel still closes it).
Controlled visibility (open)
Four positions
Four positions
Long text
Long text
API
Attributes
| Attribute | Description | Type | Default |
|---|---|---|---|
open | Whether the bubble is shown | boolean | — |
position | Bubble position | string | top |
title | Confirmation text | string | — |
Events
| Event | Description |
|---|---|
oas-cancel | Cancel: cancel button / Esc / outside click |
oas-ok | Clicked "OK"; the bubble then collapses automatically |
Slots
| Name | Description |
|---|---|
| default | — |
Clicking the wrapped content toggles the bubble; the bubble uses role="dialog".