Properties
Optional afterClose
afterClose?: (() => void)
Optional autoFocusButton
autoFocusButton?: null | "cancel" | "ok"
Optional bodyStyle
bodyStyle?: CSSProperties
Optional cancelButtonProps
Optional cancelText
cancelText?: ReactNode
Optional centered
centered?: boolean
Optional className
className?: string
Optional closable
closable?: boolean
Optional closeIcon
closeIcon?: ReactNode
Optional content
content?: ReactNode
Optional direction
direction?: DirectionType
Optional focusTriggerAfterClose
focusTriggerAfterClose?: boolean
Optional footer
footer?: ReactNode | ModalFooterRender
Optional getContainer
getContainer?: string | false | HTMLElement | getContainerFunc Optional icon
icon?: ReactNode
Optional keyboard
keyboard?: boolean
Optional mask
mask?: boolean
Optional maskClosable
maskClosable?: boolean
Optional maskStyle
maskStyle?: CSSProperties
Optional maskTransitionName
maskTransitionName?: string
Optional modalRender
modalRender?: ((node) => ReactNode)
Type declaration
- (node): ReactNode
Returns ReactNode
Optional okButtonProps
Optional okCancel
okCancel?: boolean
Optional okText
okText?: ReactNode
Optional okType
okType?: LegacyButtonType
Optional onCancel
onCancel?: ((...args) => any)
Type declaration
- (...args): any
Returns any
Optional onOk
onOk?: ((...args) => any)
Type declaration
- (...args): any
Returns any
Optional open
open?: boolean
Optional prefixCls
prefixCls?: string
Optional rootClassName
rootClassName?: string
Optional style
style?: CSSProperties
Optional styles
styles?: Omit<ModalStyles, "wrapper"> Optional title
title?: ReactNode
Optional transitionName
transitionName?: string
Optional type
type?: "error" | "confirm" | "success" | "info" | "warning" | "warn"
Optional visible
visible?: boolean
Optional width
width?: string | number
Optional wrapClassName
wrapClassName?: string
Optional zIndex
zIndex?: number
Deprecated
Please use
styles.bodyinstead