YesOrNoDialogProps
Props of YesOrNoDialog
Properties
asTriggerChild?
optionalasTriggerChild:boolean
Whether to render the trigger as a child element
className?
optionalclassName:string
Additional CSS class for the dialog
disabled?
optionaldisabled:boolean
Whether the trigger is disabled
onCloseClick()?
optionalonCloseClick: (v) =>void
Event handler called when the close button is clicked
Parameters
v
boolean
Returns
void
onResponse?
optionalonResponse:Func<boolean,void>
Event handler called when the user responds
showNoButton?
optionalshowNoButton:boolean
Whether to show the No button
title
title:
string
Title of the dialog
trigger?
optionaltrigger:ReactElement<HTMLProps,string|JSXElementConstructor<any>>
Trigger element to open the dialog
triggerClassName?
optionaltriggerClassName:string
Additional CSS class for the trigger