text.stat
A number that stands out on its own: a metric, a result, a price, an order total
Read https://www.prongs.dev/docs/intents/text/stat.md and tell me whether text.stat fits what I am building.Text intents
Example
$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.statA small count next to something, like unread notifications
text.countA single number
rather thanlayout.charttext.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.titlePage title type
text-3xl font-bold tracking-tight text-balance
tone.defaultMain text colour
text-foreground
text.statA number that stands out on its own: a metric, a result, a price, an order total
tabular-nums
text-3xl font-bold tracking-tight text-balance text-foreground tabular-nums
'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',
},
],
},