antd-mobile
Version:
<div align="center">
21 lines (20 loc) • 819 B
TypeScript
import { NativeProps } from '../../utils/native-props';
import React from 'react';
import type { FC, ReactNode } from 'react';
import { GetContainer } from '../../utils/render-to-container';
import { PropagationEvent } from '../../utils/with-stop-propagation';
export declare type MaskProps = {
visible?: boolean;
onMaskClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
destroyOnClose?: boolean;
forceRender?: boolean;
disableBodyScroll?: boolean;
color?: 'white' | 'black' | (string & {});
opacity?: 'default' | 'thin' | 'thick' | number;
getContainer?: GetContainer;
afterShow?: () => void;
afterClose?: () => void;
stopPropagation?: PropagationEvent[];
children?: ReactNode;
} & NativeProps<'--z-index'>;
export declare const Mask: FC<MaskProps>;