# heading.item

Title of a single thing: a list item, a panel, a dialog. A link in it keeps the heading colour

Component: [`<Text>`](https://www.prongs.dev/docs/components/text.md) · Renders: `<h3>` · Profile: [UI](https://www.prongs.dev/docs/intents/ui.md)

## Example

```tsx
<Text intent="heading.item">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 for… | Use |
|---|---|
| Title of a single thing: a list item, a panel, a dialog. A link in it keeps the heading colour | `heading.item` (this page) |
| The title of one item in a list, a panel or a dialog (rather than [`heading.section`](https://www.prongs.dev/docs/intents/heading/section.md)) | `heading.item` (this page) |
| The title of a single thing (rather than [`heading.side`](https://www.prongs.dev/docs/intents/heading/side.md)) | `heading.item` (this page) |
| A title that does not open anything (rather than [`text.summary`](https://www.prongs.dev/docs/intents/text/summary.md)) | `heading.item` (this 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: [`typography.subheading`](https://www.prongs.dev/docs/intents/ui.md#typography-subheading), [`tone.default`](https://www.prongs.dev/docs/intents/ui.md#tone-default)

## 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`](https://www.prongs.dev/docs/intents/ui.md#typography-subheading) — Small heading type

  ```
  text-base
  ```

- [`tone.default`](https://www.prongs.dev/docs/intents/ui.md#tone-default) — Main text colour

  ```
  text-foreground
  ```

- `heading.item` (this page) — Title of a single thing: a list item, a panel, a dialog. A link in it keeps the heading colour

  ```
  font-medium [&>a]:text-foreground
  ```

Final classes

```
text-base text-foreground font-medium [&>a]:text-foreground
```

Definition

```ts
'heading.item': {
  kind: 'semantic',
  description: 'Title of a single thing: a list item, a panel, a dialog. A link in it keeps the heading colour',
  refs: ['typography.subheading', 'tone.default'],
  binding: { classes: 'font-medium [&>a]:text-foreground', element: 'h3' },
},
```
