Lumeo

Confirm Button

A Button that opens an AlertDialog for confirmation before firing OnConfirm — replaces the boilerplate of wiring a Button and AlertDialog by hand.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<ConfirmButton />

When to Use

  • Destructive actions (delete, remove, discard) that need a confirmation step
  • Commit-changes flows where an accidental click would be costly
  • Anywhere you would otherwise hand-wire a Button plus an AlertDialog and its open state

ConfirmButton renders the confirmation through OverlayService, so the dialog is rendered by the central OverlayProvider — no extra dialog markup ends up in your component tree.

API Reference

ConfirmButton

  • AlertDialog — The modal dialog ConfirmButton opens under the hood
  • PopConfirm — Lightweight inline popover confirmation instead of a modal
  • Button — The underlying trigger; ConfirmButton accepts the same Variant / Size
  • Overlay Service — The service that renders the confirmation dialog