Text
Standalone body copy export for starter-kit typography
The deploy pipeline now reports per-stage duration.
Build, test, and upload stages each emit a span so regressions surface in the timeline before they reach production. Older runs are backfilled for the last 30 days.
Tracked as DRY-412. Rollout is gated behind the telemetry flag until next Tuesday.
commit 8f21c3e written by [email protected] at 09:42 UTCAccessibility
- Treat the component as presentational unless it exposes interactive affordances, and label any interactive affordances explicitly.
- Keep heading, reading, and focus order aligned with the surrounding content.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
Import options
Root package
ts
import { Text } from '@dryui/ui' Per-component subpath
ts
import { Text } from '@dryui/ui/text' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| as | pspandiv | Underlying HTML element to render for the component. | 'p' | — | — |
| color | defaultmutedsecondary Use muted or secondary for supporting copy without reaching for inline color styles. | Semantic color or tone applied to the component. | 'default' | — | — |
| size | xssmmdlg Applies DryUI text scale tokens for compact or emphasized body copy. | Size preset affecting density, spacing, or typography. | 'md' | — | — |
| font | sansmono | — | 'sans' | — | — |
| weight | normalmediumsemiboldbold | — | — | — | — |
| variant | defaultlabel | Visual style preset for the component. | 'default' | — | — |
| maxMeasure | narrowdefaultwidefalse Caps the rendered inline size in ch units: narrow~48ch, default~65ch, wide~80ch. Defaults are wider than Heading because body copy reads better on a longer measure. | Caps rendered inline size on an ergonomic text measure (ch unit). Pass narrow, default, or wide, or false to opt out. | false | — | — |
| children | Snippet | Content rendered inside the component. | — | — | — |