Heading intents
Example
The quick brown fox
<Text intent="heading.section">The quick brown fox</Text>Choosing between neighbours
Find the row that describes your element, and use the intent on the right.
If it is
Use
Title of a major part of a page
heading.sectionthis pageThe title of one item in a list, a panel or a dialog
heading.itemA second title on the same page
rather thanheading.pageheading.sectionthis pageThe heading itself
rather thanheading.kickerheading.sectionthis page
Connections
Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.
- Built from
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.headingSection title type
text-xl tracking-[-0.01em] text-balance
tone.defaultMain text colour
text-foreground
heading.sectionTitle of a major part of a page
font-medium
text-xl tracking-[-0.01em] text-balance text-foreground font-medium
'heading.section': {
kind: 'semantic',
description: 'Title of a major part of a page',
refs: ['typography.heading', 'tone.default'],
binding: { classes: 'font-medium', element: 'h2' },
notFor: [
{
context: 'the title of one item in a list, a panel or a dialog',
instead: 'heading.item',
},
],
},