UIInternal UI

Widgets

ConfirmDialog

@randall-enterprises/ui/components/widgets/confirm-dialog

The destructive confirmation every page was hand-rolling on AlertDialog: critical action, cancel, and a pending label that disables the action mid-flight.

Props (8)

open *boolean
onOpenChange *(open: boolean) => void
title *string
descriptionReactNode
confirmLabel *string
pendingLabelstring
pendingboolean
onConfirm *() => void