UNPKG

886 BTypeScriptView Raw
1import * as React from "react";
2import { type Props } from "../../common/props";
3export interface TextProps extends Props, React.RefAttributes<HTMLElement>, Omit<React.HTMLAttributes<HTMLElement>, "title"> {
4 children?: React.ReactNode;
5 /**
6 * Indicates that this component should be truncated with an ellipsis if it overflows its container.
7 * The `title` attribute will also be added when content overflows to show the full text of the children on hover.
8 *
9 * @default false
10 */
11 ellipsize?: boolean;
12 /**
13 * HTML tag name to use for rendered element.
14 *
15 * @default "div"
16 */
17 tagName?: keyof React.JSX.IntrinsicElements;
18 /**
19 * HTML title of the element
20 */
21 title?: string;
22}
23/**
24 * Text component.
25 *
26 * @see https://blueprintjs.com/docs/#core/components/text
27 */
28export declare const Text: React.FC<TextProps>;