isConfirmExitModalVisible
isConfirmExitModalVisible: boolean
onConfirmExitClose
onConfirmExitClose: (() => void)
Optional
position
position?:
| "topLeft"
| "topRight"
| "bottomLeft"
| "bottomRight"
Optional
backgroundColor
backgroundColor?: string
Optional
exitEventOnConfirm
socket
socket: Socket<DefaultEventsMap, DefaultEventsMap>
Optional
title
title?: ReactNode
Optional
confirmLabel
confirmLabel?: ReactNode
Optional
cancelLabel
cancelLabel?: ReactNode
Optional
message
message?: ReactNode | ((context: {
islevel: string;
}) => ReactNode)
Optional
overlayProps
overlayProps?: HTMLAttributes<HTMLDivElement>
Optional
contentProps
contentProps?: HTMLAttributes<HTMLDivElement>
Optional
headerProps
headerProps?: HTMLAttributes<HTMLDivElement>
Optional
titleProps
titleProps?: HTMLAttributes<HTMLHeadingElement>
Optional
closeButtonProps
closeButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
Optional
closeIconComponent
closeIconComponent?: ReactNode
Optional
headerDividerProps
headerDividerProps?: HTMLAttributes<HTMLHRElement>
Optional
bodyProps
bodyProps?: HTMLAttributes<HTMLDivElement>
Optional
messageProps
messageProps?: HTMLAttributes<HTMLParagraphElement>
Optional
footerProps
footerProps?: HTMLAttributes<HTMLDivElement>
Optional
cancelButtonProps
cancelButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
Optional
confirmButtonProps
confirmButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
Optional
bodyDividerProps
bodyDividerProps?: HTMLAttributes<HTMLHRElement>
Optional
renderHeader
renderHeader?: ((options: {
defaultHeader: ReactNode;
title: ReactNode;
onClose: (() => void);
}) => ReactNode)
Optional
renderBody
renderBody?: ((options: {
defaultBody: ReactNode;
message: ReactNode;
}) => ReactNode)
Optional
renderFooter
renderFooter?: ((options: {
defaultFooter: ReactNode;
onCancel: (() => void);
onConfirm: (() => void);
}) => ReactNode)
Optional
renderHeaderDivider
renderHeaderDivider?: ((options: {
defaultDivider: ReactNode;
}) => ReactNode)
Optional
renderBodyDivider
renderBodyDivider?: ((options: {
defaultDivider: ReactNode;
}) => ReactNode)
Optional
renderMessage
renderMessage?: ((options: {
defaultMessage: ReactNode;
resolvedMessage: ReactNode;
}) => ReactNode)
Optional
renderContent
renderContent?: ((options: {
defaultContent: ReactNode;
}) => ReactNode)