Skip to content

Text

Interface text in the sizes and tones of the tokens: the sentence under a title, a paragraph, a note, a figure.

import { Text, TextSkeleton } from '@sypnia/ui/react'

On this page
  1. Sizes, tones, and its skeleton
  2. When to use it
  3. For everyone
  4. Props

Sizes, tones, and its skeleton

numeric for figures that line up; truncate for one line. TextSkeleton on the right.

Everything your project keeps, as tables.

Import a CSV, or connect another database.

The file can be up to 1 GB.

Last import 3 minutes ago.

1,240 rows · 6 columns

customers_2026_november_final_v2.csv

Code
import { Text, TextSkeleton } from '@sypnia/ui/react';

export default function Sizes() {
  return (
    <div className="sy-cols" style={{ '--cols': 2, '--gap': 'var(--s-6)' } as React.CSSProperties}>
      <div className="sy-stack" style={{ '--gap': 'var(--s-2)' } as React.CSSProperties}>
        <Text size="lead">Everything your project keeps, as tables.</Text>
        <Text>Import a CSV, or connect another database.</Text>
        <Text size="sm" tone="soft">The file can be up to 1 GB.</Text>
        <Text size="xs" tone="muted">Last import 3 minutes ago.</Text>
        <Text size="sm" strong numeric>1,240 rows · 6 columns</Text>
        <div style={{ width: '12rem' }}><Text size="sm" truncate>customers_2026_november_final_v2.csv</Text></div>
      </div>
      <TextSkeleton title lines={4} />
    </div>
  );
}

When to use it

Use it when

  • Any text of the interface that is not a heading.

Do not use it when

  • Text written for reading at length: that is Prose.
  • Changing the colour to say a state: use Status or Badge, which say it in words.

For everyone

  • Muted text still keeps AA contrast on night and paper.
  • A truncated line keeps its full text for screen readers; give the full value somewhere reachable too.

Props

TextTypeDefault
as ElementType p
className string
numeric

Numbers of equal width, for figures that change or line up.

boolean
size

lead: the sentence under a title.

"sm" | "md" | "lead" | "xs" | "2xs" md
strong boolean
tone "default" | "soft" | "muted" default
truncate

One line, cut with an ellipsis.

boolean
TextSkeletonTypeDefault
lines number 3
title boolean
  1. Sizes, tones, and its skeleton
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms