1 | /// <reference types="react" />
|
2 | import { AbstractPureComponent2, HTMLDivProps, IntentProps, Intent, Props, MaybeElement } 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 | /**
|
8 | * Name of a Blueprint UI icon (or an icon element) to render on the left side.
|
9 | *
|
10 | * If this prop is omitted or `undefined`, the `intent` prop will determine a default icon.
|
11 | * If this prop is explicitly `null`, no icon will be displayed (regardless of `intent`).
|
12 | */
|
13 | icon?: IconName | MaybeElement;
|
14 | /**
|
15 | * Visual intent color to apply to background, title, and icon.
|
16 | *
|
17 | * Defining this prop also applies a default icon, if the `icon` prop is omitted.
|
18 | */
|
19 | intent?: Intent;
|
20 | /**
|
21 | * String content of optional title element.
|
22 | *
|
23 | * Due to a conflict with the HTML prop types, to provide JSX content simply
|
24 | * pass `<H4>JSX title content</H4>` as first `children` element instead of
|
25 | * using this prop (note uppercase tag name to use the Blueprint Heading
|
26 | * component).
|
27 | */
|
28 | title?: string;
|
29 | }
|
30 | /** This component supports the full range of HTML `<div>` props. */
|
31 | export declare class Callout extends AbstractPureComponent2<CalloutProps> {
|
32 | static displayName: string;
|
33 | render(): JSX.Element;
|
34 | private getIconName;
|
35 | }
|