Skip to main content

YesOrNoDialogProps

Props of YesOrNoDialog

Properties

asTriggerChild?

optional asTriggerChild: boolean

Whether to render the trigger as a child element


className?

optional className: string

Additional CSS class for the dialog


disabled?

optional disabled: boolean

Whether the trigger is disabled


onCloseClick()?

optional onCloseClick: (v) => void

Event handler called when the close button is clicked

Parameters

v

boolean

Returns

void


onResponse?

optional onResponse: Func<boolean, void>

Event handler called when the user responds


showNoButton?

optional showNoButton: boolean

Whether to show the No button


title

title: string

Title of the dialog


trigger?

optional trigger: ReactElement<HTMLProps, string | JSXElementConstructor<any>>

Trigger element to open the dialog


triggerClassName?

optional triggerClassName: string

Additional CSS class for the trigger