UNPKG

antd-mobile

Version:
17 lines (16 loc) 899 B
import type { FC, ReactNode } from 'react'; import { NativeProps } from '../../utils/native-props'; import { CenterPopupProps } from '../center-popup'; import { Action } from './dialog-action-button'; export declare type DialogProps = Pick<CenterPopupProps, 'afterClose' | 'afterShow' | 'bodyClassName' | 'bodyStyle' | 'destroyOnClose' | 'disableBodyScroll' | 'forceRender' | 'getContainer' | 'maskClassName' | 'maskStyle' | 'stopPropagation' | 'visible'> & { image?: string; header?: ReactNode; title?: ReactNode; content?: ReactNode; actions?: (Action | Action[])[]; onAction?: (action: Action, index: number) => void | Promise<void>; onClose?: () => void; closeOnAction?: boolean; closeOnMaskClick?: boolean; } & NativeProps<'--background-color' | '--border-radius' | '--max-width' | '--min-width' | '--z-index'>; export declare const Dialog: FC<DialogProps>;