Skip to main content
  1. Docs
  2. Components
  3. Type

Text

Running text, labels and inline code, on the type roles: a size, a weight and a tone from the tokens.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • Labels, values and metadata.
  • A paragraph, rendered as <p>.
  • An ID or a command, mono.
Not for

02

Anatomy

  1. 1text<span>A role: size, weight; a tone, or the inherited colour.

03

Do and don't

Tone says less, not more
DoSubtle for metadata; the words carry the rest.
Don'tDanger for a whole paragraph: nothing reads as calm.

04

Content

  • Sentence case everywhere.
  • Numbers formatted for the locale: 1,284 users.
  • mono only for what's typed or copied.
Next — TextAPI