UNPKG

868 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3import { FadeProps } from '../Fade';
4import { TransitionProps } from '../transitions/transition';
5
6export interface BackdropProps
7 extends StandardProps<
8 React.HTMLAttributes<HTMLDivElement> & Partial<FadeProps>,
9 BackdropClassKey
10 > {
11 /**
12 * If `true`, the backdrop is invisible.
13 * It can be used when rendering a popover or a custom select component.
14 */
15 invisible?: boolean;
16 /**
17 * If `true`, the backdrop is open.
18 */
19 open: boolean;
20 /**
21 * The duration for the transition, in milliseconds.
22 * You may specify a single timeout for all transitions, or individually with an object.
23 */
24 transitionDuration?: TransitionProps['timeout'];
25}
26
27export type BackdropClassKey = 'root' | 'invisible';
28
29export default function Backdrop(props: BackdropProps): JSX.Element;