Popconfirm
A compact confirmation dialog attached to an element.
When to Use
- For quick confirmation before simple actions
- When a full modal is too heavy for the confirmation
- For delete or toggle confirmations
Import
Examples
Basic
Custom Buttons
Placement
API
PopconfirmProps
title—ReactNode— Confirmation titledescription—ReactNode— Additional descriptiononConfirm—() => void— Confirm callbackonCancel—() => void— Cancel callbackokText—string— Confirm button text (default:"OK")cancelText—string— Cancel button text (default:"Cancel")placement—"top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "right"— Positionopen—boolean— Controlled visibilityonOpenChange—(open: boolean) => void— Visibility callbackdisabled—boolean— Disable the popconfirmshowCancel—boolean— Show cancel button (default:true)okType—ButtonType— Confirm button type (default:"primary")icon—ReactNode— Custom icon