text.status
The state something is in, as a word: Flying, Charging, On time, Overdue. data-tone="success", "info", "warning", "danger" or "muted" colours it
Read https://www.prongs.dev/docs/intents/text/status.md and tell me whether text.status fits what I am building.Text intents
Example
- Invoice #1042Paid
- Invoice #1043Due soon
- Invoice #1044Overdue
<Text intent="text.status" data-tone="danger">Overdue</Text>Connections
Choosing between neighbours
If it is
Use
The state something is in, as a word: Flying, Charging, On time, Overdue. data-tone="success", "info", "warning", "danger" or "muted" colours it
text.statusA status shown as a mark alone
text.indicator
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.status 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.labelSmall, slightly heavy type for names of things
text-sm font-medium
text.statusThe state something is in, as a word: Flying, Charging, On time, Overdue. data-tone="success", "info", "warning", "danger" or "muted" colours it
inline-flex w-fit items-center whitespace-nowrap rounded-full border border-surface-border px-2.5 py-0.5 text-xs text-surface-muted data-[tone=muted]:border-surface-muted/35 data-[tone=success]:border-success/25 data-[tone=success]:text-success/75 data-[tone=info]:border-info/25 data-[tone=info]:text-info/75 data-[tone=warning]:border-warning/25 data-[tone=warning]:text-warning/75 data-[tone=danger]:border-destructive/25 data-[tone=danger]:text-destructive/75
font-medium inline-flex w-fit items-center whitespace-nowrap rounded-full border border-surface-border px-2.5 py-0.5 text-xs text-surface-muted data-[tone=muted]:border-surface-muted/35 data-[tone=success]:border-success/25 data-[tone=success]:text-success/75 data-[tone=info]:border-info/25 data-[tone=info]:text-info/75 data-[tone=warning]:border-warning/25 data-[tone=warning]:text-warning/75 data-[tone=danger]:border-destructive/25 data-[tone=danger]:text-destructive/75
'text.status': {
kind: 'semantic',
description: 'The state something is in, as a word: Flying, Charging, On time, Overdue. data-tone="success", "info", "warning", "danger" or "muted" colours it',
refs: ['typography.label'],
binding: {
element: 'span',
classes: 'inline-flex w-fit items-center whitespace-nowrap rounded-full border border-surface-border px-2.5 py-0.5 text-xs text-surface-muted data-[tone=muted]:border-surface-muted/35 data-[tone=success]:border-success/25 data-[tone=success]:text-success/75 data-[tone=info]:border-info/25 data-[tone=info]:text-info/75 data-[tone=warning]:border-warning/25 data-[tone=warning]:text-warning/75 data-[tone=danger]:border-destructive/25 data-[tone=danger]:text-destructive/75',
},
notFor: [
{ context: 'a status shown as a mark alone', instead: 'text.indicator' },
],
},