interface ModalProps {
    afterClose?: (() => void);
    afterOpenChange?: ((open) => void);
    bodyStyle?: CSSProperties;
    cancelButtonProps?: Antd.ButtonProps;
    cancelText?: ReactNode;
    centered?: boolean;
    children?: ReactNode;
    className?: string;
    classNames?: ModalClassNames;
    closable?: boolean;
    closeIcon?: ReactNode;
    confirmLoading?: boolean;
    destroyOnClose?: boolean;
    focusTriggerAfterClose?: boolean;
    footer?: ReactNode | ModalFooterRender;
    forceRender?: boolean;
    getContainer?: string | false | HTMLElement | getContainerFunc;
    keyboard?: boolean;
    mask?: boolean;
    maskClosable?: boolean;
    maskStyle?: CSSProperties;
    maskTransitionName?: string;
    modalRender?: ((node) => ReactNode);
    mousePosition?: MousePosition;
    okButtonProps?: Antd.ButtonProps;
    okText?: ReactNode;
    okType?: LegacyButtonType;
    onCancel?: ((e) => void);
    onOk?: ((e) => void);
    open?: boolean;
    prefixCls?: string;
    rootClassName?: string;
    style?: CSSProperties;
    styles?: Omit<ModalStyles, "wrapper">;
    title?: ReactNode;
    transitionName?: string;
    visible?: boolean;
    width?: string | number;
    wrapClassName?: string;
    wrapProps?: any;
    zIndex?: number;
}

Hierarchy

  • ModalCommonProps
    • ModalProps

Properties

afterClose?: (() => void)

Type declaration

    • (): void
    • Returns void

afterOpenChange?: ((open) => void)

Callback when the animation ends when Modal is turned on and off

Type declaration

    • (open): void
    • Callback when the animation ends when Modal is turned on and off

      Parameters

      • open: boolean

      Returns void

bodyStyle?: CSSProperties

Deprecated

Please use styles.body instead

cancelButtonProps?: Antd.ButtonProps
cancelText?: ReactNode

Text of the Cancel button

centered?: boolean

Centered Modal

children?: ReactNode
className?: string
classNames?: ModalClassNames
closable?: boolean

Whether a close (x) button is visible on top right of the modal dialog or not. Recommend to use closeIcon instead.

closeIcon?: ReactNode
confirmLoading?: boolean

Whether to apply loading visual effect for OK button or not

destroyOnClose?: boolean
focusTriggerAfterClose?: boolean
footer?: ReactNode | ModalFooterRender

Footer content

forceRender?: boolean

Force render Modal

getContainer?: string | false | HTMLElement | getContainerFunc
keyboard?: boolean
mask?: boolean
maskClosable?: boolean

Whether to close the modal dialog when the mask (area outside the modal) is clicked

maskStyle?: CSSProperties

Deprecated

Please use styles.mask instead

maskTransitionName?: string
modalRender?: ((node) => ReactNode)

Type declaration

    • (node): ReactNode
    • Parameters

      • node: ReactNode

      Returns ReactNode

mousePosition?: MousePosition
okButtonProps?: Antd.ButtonProps
okText?: ReactNode

Text of the OK button

okType?: LegacyButtonType

Button type of the OK button

onCancel?: ((e) => void)

Specify a function that will be called when a user clicks mask, close button on top right or Cancel button

Type declaration

    • (e): void
    • Specify a function that will be called when a user clicks mask, close button on top right or Cancel button

      Parameters

      Returns void

onOk?: ((e) => void)

Specify a function that will be called when a user clicks the OK button

Type declaration

    • (e): void
    • Specify a function that will be called when a user clicks the OK button

      Parameters

      Returns void

open?: boolean

Whether the modal dialog is visible or not

prefixCls?: string
rootClassName?: string
style?: CSSProperties
styles?: Omit<ModalStyles, "wrapper">
title?: ReactNode

The modal dialog's title

transitionName?: string
visible?: boolean

Deprecated

Please use open instead.

width?: string | number

Width of the modal dialog

wrapClassName?: string
wrapProps?: any
zIndex?: number

Generated using TypeDoc