1 | import * as React from "react";
|
2 | import { AbstractPureComponent2 } from "../../common";
|
3 | import { Props, MaybeElement } from "../../common/props";
|
4 | import { IconName } from "../icon/icon";
|
5 | export declare type NonIdealStateProps = INonIdealStateProps;
|
6 | /** @deprecated use NonIdealStateProps */
|
7 | export interface INonIdealStateProps extends Props {
|
8 | /** An action to resolve the non-ideal state which appears after `description`. */
|
9 | action?: JSX.Element;
|
10 | /**
|
11 | * Advanced usage: React `children` will appear last (after `action`).
|
12 | * Avoid passing raw strings as they will not receive margins and disrupt the layout flow.
|
13 | */
|
14 | children?: React.ReactNode;
|
15 | /**
|
16 | * A longer description of the non-ideal state.
|
17 | * A string or number value will be wrapped in a `<div>` to preserve margins.
|
18 | */
|
19 | description?: React.ReactChild;
|
20 | /** The name of a Blueprint icon or a JSX Element (such as `<Spinner/>`) to render above the title. */
|
21 | icon?: IconName | MaybeElement;
|
22 | /** The title of the non-ideal state. */
|
23 | title?: React.ReactNode;
|
24 | }
|
25 | export declare class NonIdealState extends AbstractPureComponent2<NonIdealStateProps> {
|
26 | static displayName: string;
|
27 | render(): JSX.Element;
|
28 | private maybeRenderVisual;
|
29 | }
|