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

Projects · Components

RejectDialog

Props for RejectDialog component

Public export

typescript
import { RejectDialog } from '@happyvertical/smrt-projects/svelte';
Import path
@happyvertical/smrt-projects/svelte
Props
10
Props described
10 of 10
Bindable state
0
Callback events
2
Verified release
0.44.0

Props

NameTypeRequiredDescription
openbooleanYesControls whether the dialog is displayed.
titlestringNoDialog heading text.
messagestringNoInstructions displayed above the reason input.
confirmLabelstringNoLabel for the confirm button.
cancelLabelstringNoLabel for the cancel button.
placeholderstringNoPlaceholder text for the reason textarea.
requiredbooleanNoRequires the user to enter a reason before confirming.
loadingbooleanNoDisables the dialog controls during processing.
onconfirm(reason: string) => voidYesInvoked when the user confirms the rejection with a reason.
oncancel() => voidYesInvoked when the user cancels or closes the dialog.

Bindable state

This component has no bindable public state.

Callback events

  • onconfirm(reason: string) => void
  • oncancel() => void

Examples and explanation