Skip to main content

Popconfirm

A simple and compact confirmation dialog of an action.

When To Use#

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

Examples#

import { Popconfirm } from 'tailor-ui';

Basic#

With customized text & type#

API#

PropertyDescriptionTypeDefault
contentcontent of the confirmation boxReactNode
typecustomize icon of confirmation'info' | 'success' | 'error' | 'warning''warning'
cancelTexttext of the Cancel buttonstringCancel
confirmTexttext of the Confirm buttonstringConfirm
onCancelcallback of cancel(event: MouseEvent) => void
onConfirmcallback of confirmation(event: MouseEvent) => void

Consult Popover's documentation to find more APIs.