1 | import * as React from "react";
|
2 | import { AbstractPureComponent2, HTMLDivProps, Intent, IntentProps, MaybeElement, Props } from "../../common";
|
3 | import { IconName } from "../icon/icon";
|
4 | export declare type CalloutProps = ICalloutProps;
|
5 | /** @deprecated use CalloutProps */
|
6 | export interface ICalloutProps extends IntentProps, Props, HTMLDivProps {
|
7 | /** Callout contents. */
|
8 | children?: React.ReactNode;
|
9 | /**
|
10 | * Name of a Blueprint UI icon (or an icon element) to render on the left side.
|
11 | *
|
12 | * If this prop is omitted or `undefined`, the `intent` prop will determine a default icon.
|
13 | * If this prop is explicitly `null`, no icon will be displayed (regardless of `intent`).
|
14 | */
|
15 | icon?: IconName | MaybeElement;
|
16 | /**
|
17 | * Visual intent color to apply to background, title, and icon.
|
18 | *
|
19 | * Defining this prop also applies a default icon, if the `icon` prop is omitted.
|
20 | */
|
21 | intent?: Intent;
|
22 | /**
|
23 | * String content of optional title element.
|
24 | *
|
25 | * Due to a conflict with the HTML prop types, to provide JSX content simply
|
26 | * pass `<H4>JSX title content</H4>` as first `children` element instead of
|
27 | * using this prop (note uppercase tag name to use the Blueprint Heading
|
28 | * component).
|
29 | */
|
30 | title?: string;
|
31 | }
|
32 | /**
|
33 | * Callout component.
|
34 | *
|
35 | * @see https://blueprintjs.com/docs/#core/components/callout
|
36 | */
|
37 | export declare class Callout extends AbstractPureComponent2<CalloutProps> {
|
38 | static displayName: string;
|
39 | render(): JSX.Element;
|
40 | private getIconName;
|
41 | }
|