Components · Typography
Paragraph text component with size, tone, and weight variants.
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| size | 'body-lg' | 'body' | 'body-sm' | 'caption' | 'label' | 'body' | — | Controls the font size and line height. |
| tone | 'default' | 'secondary' | 'muted' | 'subtle' | 'inverse' | — | — | Color tone applied to the text. |
| weight | 'regular' | 'medium' | 'semibold' | 'bold' | — | — | Font weight of the text. |
| truncate | boolean | — | — | Truncates text with an ellipsis when it overflows. |
| lineClamp | number | — | — | Clamps the text to a maximum number of lines. |
| asChild | boolean | — | — | Merges props onto the immediate child element (Radix Slot). |
import { Text } from '@nexub/react';