UNPKG

@alicloud/console-components-truncate

Version:

React component for Alibaba Cloud.

17 lines (16 loc) 548 B
import { ReactNode, CSSProperties } from 'react'; import type { BalloonProps } from '@alicloud/console-components'; interface IProps { children: string; threshold: number; omission: ReactNode; showTooltip: boolean; align: BalloonProps['align']; className?: string; tooltipMaxWidth?: number; popupStyle?: CSSProperties; popupClassName?: string; patchPopupProps?: (originalProps: BalloonProps) => BalloonProps; } export default function TruncateByLength(props: IProps): JSX.Element; export {};