Skip to content
nexubDesign System
v2.4.0

Components · Typography

Text

StableSince v0.0.1

Paragraph text component with size, tone, and weight variants.

import { Text } from '@nexub/react';

Examples

Default

Sizes

Tones

Props

Props
PropTypeDefaultDescription
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.
truncateboolean—Truncates text with an ellipsis when it overflows.
lineClampnumber—Clamps the text to a maximum number of lines.
asChildboolean—Merges props onto the immediate child element (Radix Slot).

On iOS & Android