isConfirmExitModalVisible
isConfirmExitModalVisible: boolean
onConfirmExitClose
onConfirmExitClose: (() => void)
Optionalposition
position?:
| "topLeft"
| "topRight"
| "bottomLeft"
| "bottomRight"
OptionalbackgroundColor
backgroundColor?: string
OptionalexitEventOnConfirm
socket
socket: Socket<DefaultEventsMap, DefaultEventsMap>
Optionaltitle
title?: ReactNode
OptionalconfirmLabel
confirmLabel?: ReactNode
OptionalcancelLabel
cancelLabel?: ReactNode
Optionalmessage
message?: ReactNode | ((context: {
islevel: string;
}) => ReactNode)
OptionaloverlayProps
overlayProps?: HTMLAttributes<HTMLDivElement>
OptionalcontentProps
contentProps?: HTMLAttributes<HTMLDivElement>
OptionalheaderProps
headerProps?: HTMLAttributes<HTMLDivElement>
OptionaltitleProps
titleProps?: HTMLAttributes<HTMLHeadingElement>
OptionalcloseButtonProps
closeButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
OptionalcloseIconComponent
closeIconComponent?: ReactNode
OptionalheaderDividerProps
headerDividerProps?: HTMLAttributes<HTMLHRElement>
OptionalbodyProps
bodyProps?: HTMLAttributes<HTMLDivElement>
OptionalmessageProps
messageProps?: HTMLAttributes<HTMLParagraphElement>
OptionalfooterProps
footerProps?: HTMLAttributes<HTMLDivElement>
OptionalcancelButtonProps
cancelButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
OptionalconfirmButtonProps
confirmButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
OptionalbodyDividerProps
bodyDividerProps?: HTMLAttributes<HTMLHRElement>
OptionalrenderHeader
renderHeader?: ((options: {
defaultHeader: ReactNode;
title: ReactNode;
onClose: (() => void);
}) => ReactNode)
OptionalrenderBody
renderBody?: ((options: {
defaultBody: ReactNode;
message: ReactNode;
}) => ReactNode)
OptionalrenderFooter
renderFooter?: ((options: {
defaultFooter: ReactNode;
onCancel: (() => void);
onConfirm: (() => void);
}) => ReactNode)
OptionalrenderHeaderDivider
renderHeaderDivider?: ((options: {
defaultDivider: ReactNode;
}) => ReactNode)
OptionalrenderBodyDivider
renderBodyDivider?: ((options: {
defaultDivider: ReactNode;
}) => ReactNode)
OptionalrenderMessage
renderMessage?: ((options: {
defaultMessage: ReactNode;
resolvedMessage: ReactNode;
}) => ReactNode)
OptionalrenderContent
renderContent?: ((options: {
defaultContent: ReactNode;
}) => ReactNode)