1 | import * as React from 'react';
|
2 | /**
|
3 | * DelayedRender component props.
|
4 | *
|
5 | * @public
|
6 | */
|
7 | export interface IDelayedRenderProps extends React.Props<{}> {
|
8 | /**
|
9 | * Number of milliseconds to delay rendering children.
|
10 | */
|
11 | delay?: number;
|
12 | }
|
13 | /**
|
14 | * DelayedRender component state.
|
15 | *
|
16 | * @internal
|
17 | */
|
18 | export interface IDelayedRenderState {
|
19 | /**
|
20 | * Whether the component is rendered or not.
|
21 | */
|
22 | isRendered: boolean;
|
23 | }
|
24 | /**
|
25 | * Utility component for delaying the render of a child component after a given delay. This component
|
26 | * requires a single child component; don't pass in many components. Wrap multiple components in a DIV
|
27 | * if necessary.
|
28 | *
|
29 | * @public
|
30 | * {@docCategory DelayedRender}
|
31 | */
|
32 | export declare class DelayedRender extends React.Component<IDelayedRenderProps, IDelayedRenderState> {
|
33 | static defaultProps: {
|
34 | delay: number;
|
35 | };
|
36 | private _timeoutId;
|
37 | constructor(props: IDelayedRenderProps);
|
38 | componentDidMount(): void;
|
39 | componentWillUnmount(): void;
|
40 | render(): React.ReactElement<{}> | null;
|
41 | }
|