@blueprintjs/core
Version:
Core styles & components
30 lines (29 loc) • 936 B
TypeScript
/// <reference types="react" />
import * as React from "react";
import { IProps } from "../../common/props";
export interface ITextProps extends IProps {
/**
* Indicates that this component should be truncated with an ellipsis if it overflows its container.
* The `title` attribute will also be added when content overflows to show the full text of the children on hover.
* @default false
*/
ellipsize?: boolean;
/**
* HTML tag name to use for rendered element.
* @default "div"
*/
tagName?: keyof JSX.IntrinsicElements;
}
export interface ITextState {
textContent: string;
isContentOverflowing: boolean;
}
export declare class Text extends React.PureComponent<ITextProps, ITextState> {
static displayName: string;
state: ITextState;
private textRef;
componentDidMount(): void;
componentDidUpdate(): void;
render(): JSX.Element;
private update();
}