text.meta
Small facts about an item or the page: timestamps, authors, @handles, file sizes, "1–50 of 312", a copyright line
Read https://www.prongs.dev/docs/intents/text/meta.md and tell me whether text.meta fits what I am building.Text intents
Example
Planning notes for the third quarter
<Layout intent="layout.group" className="flex-row flex-wrap">
<Text intent="text.meta">{post.author}</Text>
<Text intent="text.meta">{post.published}</Text>
</Layout>Connections
Choosing between neighbours
If it is
Use
Small facts about an item or the page: timestamps, authors, @handles, file sizes, "1–50 of 312", a copyright line
text.metaA sentence explaining something
text.captionDates, authors or file sizes
rather thantext.captiontext.metaOther numbers about an item, like dates or sizes
rather thantext.counttext.metaA short line of facts about an item
rather thanlayout.lockuptext.metaA short line of facts under a title
rather thanlayout.detailstext.meta
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.meta 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.smallSmall reading type
text-sm leading-6
tone.mutedSecondary text colour, readable on every surface
text-surface-muted
text.metaSmall facts about an item or the page: timestamps, authors, @handles, file sizes, "1–50 of 312", a copyright line
tabular-nums
text-sm leading-6 text-surface-muted tabular-nums
'text.meta': {
kind: 'semantic',
description: 'Small facts about an item or the page: timestamps, authors, @handles, file sizes, "1–50 of 312", a copyright line',
refs: ['typography.small', 'tone.muted'],
binding: { element: 'span', classes: 'tabular-nums' },
notFor: [
{ context: 'a sentence explaining something', instead: 'text.caption' },
],
},