UNPKG

910 BTypeScriptView Raw
1import * as React from 'react';
2import { TooltipPosition } from '../Tooltip';
3export declare enum TruncatePosition {
4 start = "start",
5 end = "end",
6 middle = "middle"
7}
8interface TruncateProps extends React.HTMLProps<HTMLSpanElement> {
9 /** Class to add to outer span */
10 className?: string;
11 /** Text to truncate */
12 content: string;
13 /** The number of characters displayed in the second half of the truncation */
14 trailingNumChars?: number;
15 /** Where the text will be truncated */
16 position?: 'start' | 'middle' | 'end';
17 /** Tooltip position */
18 tooltipPosition?: TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
19}
20export declare const Truncate: React.FunctionComponent<TruncateProps>;
21export {};
22//# sourceMappingURL=Truncate.d.ts.map
\No newline at end of file