UNPKG

antd-mobile

Version:
18 lines (17 loc) 825 B
import type { FC, ReactNode } from 'react'; import { Action } from './modal-action-button'; import { NativeProps } from '../../utils/native-props'; import { CenterPopupProps } from '../center-popup'; export declare type ModalProps = Pick<CenterPopupProps, 'afterClose' | 'afterShow' | 'bodyClassName' | 'bodyStyle' | 'destroyOnClose' | 'disableBodyScroll' | 'forceRender' | 'getContainer' | 'maskClassName' | 'maskStyle' | 'stopPropagation' | 'visible'> & { image?: string; header?: ReactNode; title?: ReactNode; content?: ReactNode; actions?: Action[]; onAction?: (action: Action, index: number) => void | Promise<void>; onClose?: () => void; closeOnAction?: boolean; closeOnMaskClick?: boolean; showCloseButton?: boolean; } & NativeProps; export declare const Modal: FC<ModalProps>;