# truncated-text

- 分组：组合组件（Composite）
- 页面：/components/truncated-text
- 源码：packages/react/src/components/truncated-text.tsx

## 导出

```ts
import { TruncatedText } from "@modra/react";
```

## Props（TruncatedTextProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `lines` | 否 | `number` | Visible lines before truncation. 1 (default) uses a single-line ellipsis. |
| `tooltip` | 否 | `React.ReactNode` | Content of the tooltip. Defaults to the text itself. |
| `alwaysShowTooltip` | 否 | `boolean` | Always show the tooltip, even when the text is not clipped. |
