---
title: Text
description: Render text with single-line truncation or a limited number of lines.
---
import { StoryEmbed } from '/snippets/ui/StoryEmbed.mdx';
import TextReference from '/snippets/ui/generated/typography/text.mdx';
`Text` provides overflow handling. It renders a `div` by default and inherits typography from its surroundings.
## Truncate one line
Give the text a constrained width, then set `truncate` to show an ellipsis when it overflows:
```tsx
import { Text } from 'twenty-ui/primitives/typography';
export const ContactName = () => (
Alexandra Montgomery
);
```
## Limit the number of lines
Use `lineClamp` with a positive integer. Choose either `truncate` or `lineClamp`; their props are mutually exclusive.
```tsx
import { Text } from 'twenty-ui/primitives/typography';
export const Summary = () => (
Follow up with the customer about their onboarding milestones and upcoming
renewal.
);
```
## Choose an element
Use `render` when the text needs another semantic element:
```tsx
import { Text } from 'twenty-ui/primitives/typography';
export const Description = () => (
}>Account description
);
```
Truncation affects the visual presentation; it does not shorten the text in the DOM. Provide a way to read the full content when the visible portion is insufficient.
## Props
Native attributes, children, refs, class names, and styles are also accepted.