prongs
GitHub

text.meta

Small facts about an item or the page: timestamps, authors, @handles, file sizes, "1–50 of 312", a copyright line

Component

Renders

<span>

Profile

Comes from

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

Example

Preview

Planning notes for the third quarter

Ada Lovelace2 hours ago4 min read
<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.meta
  • A sentence explaining something

    text.caption
  • Dates, authors or file sizes

    rather than text.caption
    text.meta
  • Other numbers about an item, like dates or sizes

    rather than text.count
    text.meta
  • A short line of facts about an item

    rather than layout.lockup
    text.meta
  • A short line of facts under a title

    rather than layout.details
    text.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.small

    Small reading type

    text-sm leading-6
  • tone.muted

    Secondary text colour, readable on every surface

    text-surface-muted
  • text.meta

    Small facts about an item or the page: timestamps, authors, @handles, file sizes, "1–50 of 312", a copyright line

    tabular-nums
Final classes
text-sm leading-6 text-surface-muted tabular-nums
Definition
TS
'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' },
],
},