Skip to content

Text

stable

Body text primitive with size and weight control

Typography/Storybook ↗
import { Text } from "@nodus/design-system"
Loading demo…

Props

as
Type ElementTypeDefault "p"

Rendered HTML element

size
Type "body" | "label" | "caption" | "meta" | "micro"Default "body"

Type scale size

color
Type "primary" | "secondary" | "muted" | "inverse" | "agency" | "temporal" | "validation" | stringDefault

Text color token or custom CSS color

weight
Type CSSProperties['fontWeight']Default

Font weight override

trim
Type booleanDefault

Set line-height to 1 for tight layout

Metadatasmmdlgtype
MobileWorks As-Is
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?