prongs
GitHub

text.stat

A number that stands out on its own: a metric, a result, a price, an order total

Component

Renders

<p>

Profile

Comes from

starter
Read https://www.prongs.dev/docs/intents/text/stat.md and tell me whether text.stat fits what I am building.

Example

Preview
Monthly revenue

$48,200

Up 12% from last month

<Text intent="text.meta">Monthly revenue</Text>
<Text intent="text.stat">$48,200</Text>

Connections

Choosing between neighbours

  • If it is

    Use

  • A number that stands out on its own: a metric, a result, a price, an order total

    text.stat
  • A small count next to something, like unread notifications

    text.count
  • A single number

    rather than layout.chart
    text.stat

For registry authors

Starter intents. These are the intents prongs add puts in your registry, shown in this site’s theme. Yours are your own registry.ts: rename, restyle and add to them, and see them with prongs add gallery.

What this intent is built from and its entry in components/prongs/registry.ts. You only need this to change how it looks or to add an intent like it.

How text.stat resolves, and its definition

Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.

  • typography.title

    Page title type

    text-3xl font-bold tracking-tight text-balance
  • tone.default

    Main text colour

    text-foreground
  • text.stat

    A number that stands out on its own: a metric, a result, a price, an order total

    tabular-nums
Final classes
text-3xl font-bold tracking-tight text-balance text-foreground
tabular-nums
Definition
TS
'text.stat': {
kind: 'semantic',
description: 'A number that stands out on its own: a metric, a result, a price, an order total',
refs: ['typography.title', 'tone.default'],
binding: { element: 'p', classes: 'tabular-nums' },
notFor: [
{
context: 'a small count next to something, like unread notifications',
instead: 'text.count',
},
],
},