UNPKG

819 BTypeScriptView Raw
1import { NativeProps } from '../../utils/native-props';
2import React from 'react';
3import type { FC, ReactNode } from 'react';
4import { GetContainer } from '../../utils/render-to-container';
5import { PropagationEvent } from '../../utils/with-stop-propagation';
6export declare type MaskProps = {
7 visible?: boolean;
8 onMaskClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
9 destroyOnClose?: boolean;
10 forceRender?: boolean;
11 disableBodyScroll?: boolean;
12 color?: 'white' | 'black' | (string & {});
13 opacity?: 'default' | 'thin' | 'thick' | number;
14 getContainer?: GetContainer;
15 afterShow?: () => void;
16 afterClose?: () => void;
17 stopPropagation?: PropagationEvent[];
18 children?: ReactNode;
19} & NativeProps<'--z-index'>;
20export declare const Mask: FC<MaskProps>;