prongs
GitHub

heading.section

Title of a major part of a page

Component

Renders

<h2>

Profile

Comes from

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

Example

Preview

The quick brown fox

<Text intent="heading.section">The quick brown fox</Text>

Connections

Choosing between neighbours

  • If it is

    Use

  • Title of a major part of a page

    heading.section
  • The title of one item in a list, a panel or a dialog

    heading.item
  • A second title on the same page

    rather than heading.page
    heading.section
  • The title of a major part of a page

    rather than heading.group
    heading.section
  • The heading itself

    rather than heading.kicker
    heading.section

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 heading.section 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.heading

    Section title type

    text-xl font-semibold tracking-tight text-balance
  • tone.default

    Main text colour

    text-foreground
  • heading.section

    Title of a major part of a page

Final classes
text-xl font-semibold tracking-tight text-balance
text-foreground
Definition
TS
'heading.section': {
kind: 'semantic',
description: 'Title of a major part of a page',
refs: ['typography.heading', 'tone.default'],
binding: { element: 'h2' },
notFor: [
{
context: 'the title of one item in a list, a panel or a dialog',
instead: 'heading.item',
},
],
},