smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Feedback and overlays

ConfirmDialog

Modal confirmation dialog. Provides a consistent confirmation dialog for destructive actions or important decisions.

Public export

typescript
import { ConfirmDialog } from '@happyvertical/smrt-ui/feedback';
Import path
@happyvertical/smrt-ui/feedback
Props
9
Props described
9 of 9
Bindable state
0
Callback events
2
Verified release
0.62.10

Props

NameTypeRequiredDescription
openbooleanYesWhether the dialog is open
titlestringYesDialog title
messagestring | SnippetYesPlain text or rich message snippet
confirmLabelstringNoConfirm button label
cancelLabelstringNoCancel button label
destructivebooleanNoUse destructive (red) styling for confirm
loadingbooleanNoShow loading state on confirm
onconfirm() => voidNoCalled when confirm is clicked
oncancel() => voidNoCalled when cancel is clicked or dialog closed

Bindable state

This component has no bindable public state.

Callback events

  • onconfirm() => void
  • oncancel() => void

Examples and explanation