Flutter docs
Default skin

Popconfirm

Pop up a bubble confirmation box for an action.

When to use

A simple and compact dialog used for asking for user confirmation.

The difference with the confirm modal dialog is that it's more lightweight than the static popped full-screen confirm modal.

Examples

API

Popconfirm are exported from @ceebee/ui/client.

Popconfirm

PropertyDescriptionTypeDefaultVersion
cancelButtonPropsThe cancel button propsButtonProps-—
cancelTextThe text of the Cancel buttonstringCancel—
disabledWhether show popconfirm when click its childrenNodebooleanfalse—
iconCustomize icon of confirmationReactNode<ExclamationCircleFilled />—
okButtonPropsThe ok button propsButtonProps-—
okTextThe text of the Confirm buttonstringOK—
okTypeButton type of the Confirm buttonstringprimary—
showCancelShow cancel buttonbooleantrue4.18.0
titleThe title of the confirmation boxReactNode | () => ReactNode-—
descriptionThe description of the confirmation box titleReactNode | () => ReactNode-5.1.0
onCancelA callback of cancelfunction(e)-—
onConfirmA callback of confirmationfunction(e)-—
onPopupClickA callback of popup clickfunction(e)-5.5.0