# heading.page

The one title of a page: Settings, Sign in, Privacy policy, a profile name

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

## Example

```tsx
<Text intent="heading.page">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 |
|---|---|
| The one title of a page: Settings, Sign in, Privacy policy, a profile name | `heading.page` (this page) |
| A second title on the same page | [`heading.section`](https://www.prongs.dev/docs/intents/heading/section.md) |
| A marketing headline | [`heading.pitch`](https://www.prongs.dev/docs/intents/heading/pitch.md) |
| The title of an app page, sign in, settings or a document (rather than [`heading.pitch`](https://www.prongs.dev/docs/intents/heading/pitch.md)) | `heading.page` (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.title`](https://www.prongs.dev/docs/intents/ui.md#typography-title), [`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.page 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.title`](https://www.prongs.dev/docs/intents/ui.md#typography-title) — Page title type

  ```
  text-3xl tracking-[-0.01em] text-balance
  ```

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

  ```
  text-foreground
  ```

- `heading.page` (this page) — The one title of a page: Settings, Sign in, Privacy policy, a profile name

  ```
  font-medium
  ```

Final classes

```
text-3xl tracking-[-0.01em] text-balance text-foreground
font-medium
```

Definition

```ts
'heading.page': {
  kind: 'semantic',
  description: 'The one title of a page: Settings, Sign in, Privacy policy, a profile name',
  refs: ['typography.title', 'tone.default'],
  binding: { classes: 'font-medium', element: 'h1' },
  notFor: [
    {
      context: 'a second title on the same page',
      instead: 'heading.section',
    },
    { context: 'a marketing headline', instead: 'heading.pitch' },
  ],
},
```
