Popconfirm
Feedback
@rockshin/tao-uiShows a compact confirmation popup anchored to a trigger element, with OK and Cancel actions.
When to use
Use Popconfirm for lightweight inline confirmations such as delete actions, where a full Modal would be too heavy. Use Modal.confirm for critical or complex confirmations.
Recommended
- Keep the title to one short question; put detail in the description.
- Use Popconfirm for reversible, low-risk actions anchored to the control that triggers them.
Avoid
- Do not use Popconfirm for irreversible high-risk operations; use Modal.confirm instead.
- Do not put forms or rich interactions inside a Popconfirm.
Examples
Basic usage
Description and custom labels
Button props and disabled state
Confirm and cancel outcomes
Handle both callbacks and show the chosen outcome inline.
Conditional availability
disabled prevents opening; a separate switch demonstrates availability.
Placement and icon
placement sets the preferred direction, and icon=null hides the default warning icon.