s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Feedback and overlays

ConfirmDialog

Props for ConfirmDialog component

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.44.0

Props

NameTypeRequiredDescription
openbooleanYesWhether the dialog is open
titlestringYesDialog title
messagestringYesDialog message
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