Skip to content
SENVENLI UI

Text

Body copy, captions and inline text on the type scale, plus Prose for long rich text.

Your order has been confirmed and will ship within two business days. We will email a tracking number to Ada Lovelace as soon as the package leaves the warehouse.

A paragraph
import { Text, Prose } from "@senvenli/react/display";

Examples

Sizes

Body by default; large for lead text, small for captions, code for identifiers.
Three invoices are due this week.Three invoices are due this week.Three invoices are due this week.INV-2026-0318

Tones

Subtle tones for secondary text; semantic tones only when the text carries that meaning.

Long-form text

Prose styles rendered HTML or Markdown: headings, lists, quotes, code and links.

Guidelines

When to use it

  • Any run of app text: descriptions, help text, captions, numbers.
  • Prose: long formatted content such as articles or terms.

Use something else when

  • The words title a page or section. Heading

Do and avoid

  • Keep legal and body text at body or larger; use subtle and subtlest tones for secondary text only.

Accessibility

Built in

  • Tones meet WCAG AA contrast on every surface token.

You provide

  • elementType="p" for paragraphs so the text has the right semantics.

API reference

Text

size
TextSizeDefault "body"
tone
TextToneDefault "default"
weight
"medium" | "regular"Default "regular"
elementType
"div" | "span" | "p"Default "span"

p for a paragraph (kept under ~70 characters a line), span inline, div for a block.

isNumeric
boolean

Lines up figures in columns and changing values.

truncate
boolean

One line, cut with an ellipsis where its container ends (a table cell, a card title).

childrenRequired
React.ReactNode

Prose

childrenRequired
React.ReactNode