• Parameters

    Returns ReactNode

Properties

_InternalPanelDoNotUseOrYouWillBeFired: ((props) => Element)

Internal Component. Do not use in your production.

Type declaration

    • (props): Element
    • Internal Component. Do not use in your production.

      Parameters

      • props: PurePanelProps

      Returns Element

config: ((__namedParameters) => void)

Type declaration

    • (__namedParameters): void
    • Parameters

      • __namedParameters: {
            rootPrefixCls: string;
        }
        • rootPrefixCls: string

      Returns void

confirm: ModalFunc
contextTypes?: ValidationMap<any>

Deprecated

Lets you specify which legacy context is consumed by this component.

See

Legacy React Docs

defaultProps?: Partial<Antd.ModalProps>

Used to define default values for the props accepted by the component.

See

React Docs

Example

type Props = { name?: string }

const MyComponent: FC<Props> = (props) => {
return <div>{props.name}</div>
}

MyComponent.defaultProps = {
name: 'John Doe'
}
destroyAll: (() => void)

Type declaration

    • (): void
    • Returns void

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

See

Legacy React Docs

Example


const MyComponent: FC = () => {
return <div>Hello!</div>
}

MyComponent.displayName = 'MyAwesomeComponent'
error: ModalFunc
info: ModalFunc
propTypes?: WeakValidationMap<Antd.ModalProps>

Used to declare the types of the props accepted by the component. These types will be checked during rendering and in development only.

We recommend using TypeScript instead of checking prop types at runtime.

success: ModalFunc
useModal: (() => readonly [instance: HookAPI, contextHolder: React.ReactElement])

Type declaration

    • (): readonly [instance: HookAPI, contextHolder: React.ReactElement]
    • Returns readonly [instance: HookAPI, contextHolder: React.ReactElement]

warn: ModalFunc
warning: ModalFunc

Generated using TypeDoc