Kombase
Components

ConfirmDialog

Confirmation dialog component built on top of AlertDialog.

Overview

ConfirmDialog is a reusable confirmation modal built using AlertDialog.

It supports:

  • Confirmation actions
  • Destructive actions
  • Form submission
  • Loading states
  • Custom content

Useful for:

  • Delete confirmation
  • Submit confirmation
  • Approve / reject actions
  • Form confirmation flows

Examples

Basic Usage


Usage

Action Confirmation


With Form Submission


Loading State


API

ConfirmDialog

Prop

Type


Form vs Action Mode

ConfirmDialog supports two mutually exclusive modes:

ModeRequired Prop
Action callbackhandleConfirm
Form submissionform

Notes

  • When form is provided, the confirm button automatically becomes type="submit".
  • When handleConfirm is used, the confirm button acts as a normal button.
  • destructive changes the confirm button variant to destructive styling.
  • isLoading disables both cancel and confirm actions.

How is this guide?

On this page