UNPKG

@material-ui/core

Version:

React components that implement Google's Material Design.

30 lines (26 loc) 868 B
import * as React from 'react'; import { StandardProps } from '..'; import { FadeProps } from '../Fade'; import { TransitionProps } from '../transitions/transition'; export interface BackdropProps extends StandardProps< React.HTMLAttributes<HTMLDivElement> & Partial<FadeProps>, BackdropClassKey > { /** * If `true`, the backdrop is invisible. * It can be used when rendering a popover or a custom select component. */ invisible?: boolean; /** * If `true`, the backdrop is open. */ open: boolean; /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. */ transitionDuration?: TransitionProps['timeout']; } export type BackdropClassKey = 'root' | 'invisible'; export default function Backdrop(props: BackdropProps): JSX.Element;