prongs
GitHub

heading.item

Title of a single thing: a list item, a panel, a dialog

Component

Renders

<h3>

Profile

Comes from

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

Example

Preview

The quick brown fox

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

Connections

Choosing between neighbours

  • If it is

    Use

  • Title of a single thing: a list item, a panel, a dialog

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

    rather than heading.section
    heading.item
  • A title that does not open anything

    rather than text.summary
    heading.item

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.item 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.subheading

    Small heading type

    text-base font-semibold
  • tone.default

    Main text colour

    text-foreground
  • heading.item

    Title of a single thing: a list item, a panel, a dialog

Final classes
text-base font-semibold text-foreground
Definition
TS
'heading.item': {
kind: 'semantic',
description: 'Title of a single thing: a list item, a panel, a dialog',
refs: ['typography.subheading', 'tone.default'],
binding: { element: 'h3' },
},