UNPKG

1.45 kBTypeScriptView Raw
1import * as React from "react";
2import { AbstractPureComponent2, HTMLDivProps, Intent, IntentProps, MaybeElement, Props } from "../../common";
3import { IconName } from "../icon/icon";
4export declare type CalloutProps = ICalloutProps;
5/** @deprecated use CalloutProps */
6export 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}
32export declare class Callout extends AbstractPureComponent2<CalloutProps> {
33 static displayName: string;
34 render(): JSX.Element;
35 private getIconName;
36}