Components
AbbreviateNumberActionLinkAdaptiveCardAffixAuthorityCheckCalendarViewChartConfirmDialogContainerCustomFormatInputDataTableDebounceInputDoubleSidedImageEllipsisButtonGanttChartGrowShrinkValueIconTextImageGalleryLoadingMasonryMediaSkeletonNavToggleNumericInputOtpInputPasswordInputPatternInputRegionMapRichTextEditorSegmentItemOptionStickyFooterSyntaxHighlighterUsersAvatarGroup
ConfirmDialog
ConfirmDialog is premade dialog that use for confirmation.
Example
Example usage.
API
ConfirmDialog
| Prop | Description | Type | Default |
|---|---|---|---|
| cancelText | Cancel button text | string | 'Cancel' |
| cancelButtonProps | Apply Button props to cancel button | ButtonProps | - |
| confirmButtonProps | Apply Button props to confirm button | ButtonProps | - |
| confirmText | Confirm button text | string | 'Confirm' |
| onCancel | Callback function after click on cancel button | () => void | - |
| onConfirm | Callback function after click on confirm button | () => void | - |
| title | Title of confirmation | string | 'info' |
| type | Type of confirmation | 'info' | 'success' | 'warning' | 'danger' | 'info' |