prongs
GitHub

text.lead

Introductory paragraph directly under the title of a page, section or dialog

Component

Renders

<p>

Profile

Comes from

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

Example

Preview

Pack my box with five dozen liquor jugs.

<Text intent="text.lead">Pack my box with five dozen liquor jugs.</Text>

Connections

Choosing between neighbours

  • If it is

    Use

  • Introductory paragraph directly under the title of a page, section or dialog

    text.lead
  • The introduction right under a page title

    rather than text.body
    text.lead

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.lead 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.lead

    Large reading type

    text-lg leading-8
  • tone.muted

    Secondary text colour, readable on every surface

    text-surface-muted
  • text.lead

    Introductory paragraph directly under the title of a page, section or dialog

Final classes
text-lg leading-8 text-surface-muted
Definition
TS
'text.lead': {
kind: 'semantic',
description: 'Introductory paragraph directly under the title of a page, section or dialog',
refs: ['typography.lead', 'tone.muted'],
binding: { element: 'p' },
},