Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/Fade/Fade.d.ts 1.55 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  import * as React from 'react';
  import { TransitionProps } from "../transitions/transition.js";
  export interface FadeProps extends Omit<TransitionProps, 'children'> {
    /**
     * Perform the enter transition when it first mounts if `in` is also `true`.
     * Set this to `false` to disable this behavior.
     * @default true
     */
    appear?: boolean;
    /**
     * A single child content element.
     */
    children: React.ReactElement<unknown, any>;
    /**
     * The transition timing function.
     * You may specify a single easing or a object containing enter and exit values.
     */
    easing?: TransitionProps['easing'];
    /**
     * If `true`, the component will transition in.
     */
    in?: boolean;
    ref?: React.Ref<unknown>;
    /**
     * The duration for the transition, in milliseconds.
     * You may specify a single timeout for all transitions, or individually with an object.
     * @default {
     *   enter: theme.transitions.duration.enteringScreen,
     *   exit: theme.transitions.duration.leavingScreen,
     * }
     */
    timeout?: TransitionProps['timeout'];
  }
  
  /**
   * The Fade transition is used by the [Modal](https://mui.com/material-ui/react-modal/) component.
   * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
   *
   * Demos:
   *
   * - [Transitions](https://mui.com/material-ui/transitions/)
   *
   * API:
   *
   * - [Fade API](https://mui.com/material-ui/api/fade/)
   * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
   */
  export default function Fade(props: FadeProps): React.JSX.Element;