> ## Documentation Index
> Fetch the complete documentation index at: https://www.beeq.design/llms.txt
> Use this file to discover all available pages before exploring further.

# Page title

> Page titles help people understand where they are in a product and can surface related navigation, context, and actions.

![BEEQ Page title component overview](https://mintcdn.com/beeq/wg4EwK5G4l2plt8W/components/images/page-title/page-title-overview-light.svg?fit=max\&auto=format\&n=wg4EwK5G4l2plt8W\&q=85\&s=4651926f0cb5253aa5ad949515bf9544)

Page title component overview

Page titles introduce the current page or section and can pair the main heading with navigation, context, and related actions. Use them when the top of the page should confirm location immediately and keep the most relevant page-level controls nearby.

> [!NOTE]
>
> `bq-page-title` is slot-based. Use the default slot for the main title, `back` for navigation, `sub-title` for supporting text, and `suffix` for related actions.

## When to use

> [card]
>
> Use page titles when
>
> * The page needs a clear H1-level title
> * People benefit from a back action or supporting context near the heading
> * Related page-level actions should stay close to the title instead of being scattered across the layout
> * The page should immediately confirm where the user is

> [card]
>
> Do not use page titles when
>
> * A smaller section heading is enough
> * Several competing actions would overload the title area
> * The title repeats information that is already obvious from surrounding context
> * Extra supporting text would make the top of the page harder to scan

## Patterns

The common page-title compositions build from the same base component.

> [card] Title only
>
> The simplest pattern, used when the page heading alone provides enough context.

> [card] Title with back navigation
>
> Useful for nested screens, sub-pages, or multi-step flows where users may need to return to a previous page.

> [card] Title with subtitle
>
> Adds supporting context when the page needs a little more explanation than the main title alone can provide.

> [card] Title with actions
>
> Keeps page-level actions such as edit, save, or download close to the heading they affect.

## Anatomy

Page titles combine a required H1 with optional supporting slots. This makes it easy to keep navigation, context, and related actions grouped in one predictable place.

| Part | Element | Description |
| - | - | - |
| **1** | Back | Optional slot used for back navigation |
| **2** | Title | The main page heading rendered as an `h1` |
| **3** | Suffix | Optional slot for page-level actions |
| **4** | Sub-title | Optional supporting text shown below the title row |

## Design guidelines

The page title component already renders the main title inside an `h1`. Use it for the primary page heading, not for lower-level section labels.
Follow this sequence when you define a page title:

**1. Write the title first**

Start with the shortest heading that clearly identifies the page. The main title should confirm location immediately without sounding like a sentence.

**2. Add context only when needed**

Use the subtitle for clarifying details that help users act or understand scope. If the subtitle repeats the title, remove it.

**3. Keep actions focused**

Only place page-level actions in the suffix area. If the title bar starts competing with the page content, reduce or relocate the actions.

> [!WARNING]
>
> Use `bq-page-title` once per page view and only at the top of the main content area. Placing it inside cards, panels, or repeating list items creates multiple `h1` elements on the same page, which breaks heading hierarchy for screen readers.

## Usage

### Default

Use the default composition when the title alone provides enough context.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-page-title>
  Title
</bq-page-title>
```

```jsx React icon="react" theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqPageTitle } from "@beeq/react";

<BqPageTitle>
  Title
</BqPageTitle>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqPageTitle } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqPageTitle],
  template: `
    <bq-page-title>
      Title
    </bq-page-title>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqPageTitle } from "@beeq/vue";
</script>

<template>
  <BqPageTitle>
    Title
  </BqPageTitle>
</template>
```

### Title + Back

Use a back action when the page is part of a flow or nested navigation path.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-page-title>
  <bq-button appearance="link" slot="back" label="Go back" only-icon>
    <bq-icon color="text--primary" name="arrow-left-bold" aria-hidden="true"></bq-icon>
  </bq-button>
  Title
</bq-page-title>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqIcon, BqPageTitle } from "@beeq/react";

<BqPageTitle>
  <BqButton appearance="link" slot="back" label="Go back" onlyIcon>
    <BqIcon color="text--primary" name="arrow-left-bold" aria-hidden="true" />
  </BqButton>
  Title
</BqPageTitle>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqPageTitle, BqButton, BqIcon } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqPageTitle, BqButton, BqIcon],
  template: `
    <bq-page-title>
      <bq-button appearance="link" slot="back" label="Go back" only-icon>
        <bq-icon color="text--primary" name="arrow-left-bold" aria-hidden="true"></bq-icon>
      </bq-button>
      Title
    </bq-page-title>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqIcon, BqPageTitle } from "@beeq/vue";
</script>

<template>
  <BqPageTitle>
    <BqButton appearance="link" slot="back" label="Go back" onlyIcon>
      <BqIcon color="text--primary" name="arrow-left-bold" aria-hidden="true" />
    </BqButton>
    Title
  </BqPageTitle>
</template>
```

### Title + Back + Subtitle

Add a subtitle when people need a little more context before acting.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-page-title>
  <bq-button appearance="link" slot="back" label="Go back" only-icon>
    <bq-icon color="text--primary" name="arrow-left-bold" aria-hidden="true"></bq-icon>
  </bq-button>
  Title
  <div slot="sub-title">Sub-title</div>
</bq-page-title>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqIcon, BqPageTitle } from "@beeq/react";

<BqPageTitle>
  <BqButton appearance="link" slot="back" label="Go back" onlyIcon>
    <BqIcon color="text--primary" name="arrow-left-bold" aria-hidden="true" />
  </BqButton>
  Title
  <div slot="sub-title">Sub-title</div>
</BqPageTitle>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqPageTitle, BqButton, BqIcon } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqPageTitle, BqButton, BqIcon],
  template: `
    <bq-page-title>
      <bq-button appearance="link" slot="back" label="Go back" only-icon>
        <bq-icon color="text--primary" name="arrow-left-bold" aria-hidden="true"></bq-icon>
      </bq-button>
      Title
      <div slot="sub-title">Sub-title</div>
    </bq-page-title>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqIcon, BqPageTitle } from "@beeq/vue";
</script>

<template>
  <BqPageTitle>
    <BqButton appearance="link" slot="back" label="Go back" onlyIcon>
      <BqIcon color="text--primary" name="arrow-left-bold" aria-hidden="true" />
    </BqButton>
    Title
    <div slot="sub-title">Sub-title</div>
  </BqPageTitle>
</template>
```

## Options

### Title + Actions

Use the suffix slot for page-level actions when back navigation is not relevant — for example, a top-level list page with a primary action.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-page-title>
  Dashboard users
  <div slot="suffix">
    <bq-button>
      <bq-icon name="plus" aria-hidden="true" slot="prefix"></bq-icon>
      Add user
    </bq-button>
  </div>
</bq-page-title>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqIcon, BqPageTitle } from "@beeq/react";

<BqPageTitle>
  Dashboard users
  <div slot="suffix">
    <BqButton>
      <BqIcon name="plus" aria-hidden="true" slot="prefix" />
      Add user
    </BqButton>
  </div>
</BqPageTitle>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqPageTitle, BqButton, BqIcon } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqPageTitle, BqButton, BqIcon],
  template: `
    <bq-page-title>
      Dashboard users
      <div slot="suffix">
        <bq-button>
          <bq-icon name="plus" aria-hidden="true" slot="prefix"></bq-icon>
          Add user
        </bq-button>
      </div>
    </bq-page-title>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqIcon, BqPageTitle } from "@beeq/vue";
</script>

<template>
  <BqPageTitle>
    Dashboard users
    <div slot="suffix">
      <BqButton>
        <BqIcon name="plus" aria-hidden="true" slot="prefix" />
        Add user
      </BqButton>
    </div>
  </BqPageTitle>
</template>
```

### Title + Back + Subtitle + Actions

Use the suffix slot when the title area needs page-level actions such as edit or download.

```css styles.css icon="css" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
bq-page-title {
  & [slot="suffix"] {
    display: flex;
    flex-grow: 1;
    justify-content: end;
  }

  & [slot="suffix"] bq-button {
    padding: var(--bq-spacing-xs2);
  }
}
```

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-page-title>
  <bq-button appearance="link" slot="back" label="Go back" only-icon>
    <bq-icon color="text--primary" name="arrow-left-bold" aria-hidden="true"></bq-icon>
  </bq-button>
  Title
  <div slot="sub-title">Sub-title</div>
  <div slot="suffix">
    <bq-button appearance="text" size="small" label="Edit" only-icon>
      <bq-icon name="pencil-simple-bold" color="text--brand" aria-hidden="true"></bq-icon>
    </bq-button>
    <bq-button appearance="text" size="small" label="Download" only-icon>
      <bq-icon name="download-simple-bold" color="text--brand" aria-hidden="true"></bq-icon>
    </bq-button>
  </div>
</bq-page-title>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqIcon, BqPageTitle } from "@beeq/react";
import "./styles.css";

<BqPageTitle>
  <BqButton appearance="link" slot="back" label="Go back" onlyIcon>
    <BqIcon color="text--primary" name="arrow-left-bold" aria-hidden="true" />
  </BqButton>
  Title
  <div slot="sub-title">Sub-title</div>
  <div slot="suffix">
    <BqButton appearance="text" size="small" label="Edit" onlyIcon>
      <BqIcon name="pencil-simple-bold" color="text--brand" aria-hidden="true" />
    </BqButton>
    <BqButton appearance="text" size="small" label="Download" onlyIcon>
      <BqIcon name="download-simple-bold" color="text--brand" aria-hidden="true" />
    </BqButton>
  </div>
</BqPageTitle>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqPageTitle, BqButton, BqIcon } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqPageTitle, BqButton, BqIcon],
  template: `
    <bq-page-title>
      <bq-button appearance="link" slot="back" label="Go back" only-icon>
        <bq-icon color="text--primary" name="arrow-left-bold" aria-hidden="true"></bq-icon>
      </bq-button>
      Title
      <div slot="sub-title">Sub-title</div>
      <div slot="suffix">
        <bq-button appearance="text" size="small" label="Edit" only-icon>
          <bq-icon name="pencil-simple-bold" color="text--brand" aria-hidden="true"></bq-icon>
        </bq-button>
        <bq-button appearance="text" size="small" label="Download" only-icon>
          <bq-icon name="download-simple-bold" color="text--brand" aria-hidden="true"></bq-icon>
        </bq-button>
      </div>
    </bq-page-title>
  `,
  styles: [`
    bq-page-title {
      & [slot="suffix"] {
        display: flex;
        flex-grow: 1;
        justify-content: end;
      }

      & [slot="suffix"] bq-button {
        padding: var(--bq-spacing-xs2);
      }
    }
  `],
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqIcon, BqPageTitle } from "@beeq/vue";
</script>

<template>
  <BqPageTitle>
    <BqButton appearance="link" slot="back" label="Go back" onlyIcon>
      <BqIcon color="text--primary" name="arrow-left-bold" aria-hidden="true" />
    </BqButton>
    Title
    <div slot="sub-title">Sub-title</div>
    <div slot="suffix">
      <BqButton appearance="text" size="small" label="Edit" onlyIcon>
        <BqIcon name="pencil-simple-bold" color="text--brand" aria-hidden="true" />
      </BqButton>
      <BqButton appearance="text" size="small" label="Download" onlyIcon>
        <BqIcon name="download-simple-bold" color="text--brand" aria-hidden="true" />
      </BqButton>
    </div>
  </BqPageTitle>
</template>

<style>
  bq-page-title {
    & [slot="suffix"] {
      display: flex;
      flex-grow: 1;
      justify-content: end;
    }

    & [slot="suffix"] bq-button {
      padding: var(--bq-spacing-xs2);
    }
  }
</style>
```

## Best practices

> [card]
>
> Do
>
> Use the page title for the main page heading so people can understand location immediately.

> [card]
>
> Don't
>
> Do not use the component for lower-level section labels that should remain inside the page content.

> [card]
>
> Do
>
> Keep the title concise and use the subtitle only when it adds real context.

> [card]
>
> Don't
>
> Do not repeat the same message across the title and subtitle or turn the header into a paragraph.

> [card]
>
> Do
>
> Use the back slot for clear return navigation when the page belongs to a nested flow.

> [card]
>
> Don't
>
> Do not add decorative icons that look like actions but have no clear purpose.

> [card]
>
> Do
>
> Keep suffix actions limited to the page-level controls users are most likely to need right away.

> [card]
>
> Don't
>
> Do not overload the title area with too many actions or controls that compete with the heading itself.

## Accessibility

* A page must have only one `h1`. You must not place `bq-page-title` inside panels, cards, drawers, or any context where it would render alongside another `h1`.
* For icon-only back and suffix buttons, you must set `label` on `bq-button` so the inner native button has an accessible name. You should set `aria-hidden="true"` on its decorative icon; a `title` or `aria-label` on the `bq-icon` host does not label the button.
* `bq-page-title` renders the main title inside an `h1`, so the default slot must contain the primary heading for the page.
* Back and suffix content are slotted, so their accessibility depends on what you place there. You must use real buttons or links with clear accessible names.
* The subtitle is additional context, not a replacement for the title. The main heading must be understandable on its own.
* If you use icon-only controls in `back` or `suffix`, they must have an accessible label and not just a visual symbol.

### Keyboard interaction

No keyboard interaction: the component is not focusable. Controls you place in the `back` and `suffix` slots keep their own keyboard behavior.

### Rules

| Rule | Strength | Verified by |
| - | - | - |
| Use only one `h1` per page | MUST | manual: inspect the page heading outline for duplicate h1 elements |
| Do not place `bq-page-title` inside panels, cards, drawers, or any context that renders another `h1` | MUST NOT | manual: inspect heading levels inside nested surfaces |
| Put the primary page heading in the default slot, understandable on its own | MUST | manual: read the page heading without surrounding content |
| Use real buttons or links with accessible names in the `back` and `suffix` slots | MUST | manual: tab through back and suffix controls and inspect their names |
| Set `label` on icon-only `bq-button` controls | MUST | manual: inspect icon-only button accessible names |

## API reference

### Properties

| Property | Attribute | Description | Type | Default |
| - | - | - | - | - |
| None | None | This component does not expose public properties | — | — |

### Invalid combinations

No invalid prop combinations.

### Slots

| Slot | Description |
| - | - |
| *(default)* | The main page title content |
| `back` | Optional back navigation action |
| `sub-title` | Optional supporting text shown below the title row |
| `suffix` | Optional trailing actions shown beside the title |

### Shadow parts

| Part | Description |
| - | - |
| `base` | The inner container that holds the full page title component |
| `back` | The container for the back slot |
| `content` | The main title and subtitle container |
| `title-suffix` | The row containing the title and suffix |
| `title` | The `h1` title element |
| `suffix` | The container for the suffix slot |
| `sub-title` | The container for the subtitle slot |

### CSS custom properties

**CSS variables**

| Variable | Description | Default |
| - | - | - |
| `--bq-page-title--divider-color` | Color of the divider below the page title area, used by `--subtitle-borderBlockEnd` | `var(--bq-stroke--primary)` |
| `--paddingY` | Vertical padding of the page title wrapper | `var(--bq-spacing-xl)` |
| `--subtitle-borderBlockEnd` | Border below the page title area | `1px solid var(--bq-page-title--divider-color)` |
| `--subtitle-fontWeight` | Subtitle font weight | `var(--bq-font-weight--medium)` |
| `--subtitle-textColor` | Subtitle text color | `var(--bq-text--secondary)` |
| `--subtitle-textSize` | Subtitle font size | `var(--bq-font-size--l)` |
| `--title-fontWeight` | Title font weight | `var(--bq-font-weight--bold)` |
| `--title-lineHeight` | Title line height | `var(--bq-font-line-height--regular)` |
| `--title-textColor` | Title text color | `var(--bq-text--primary)` |
| `--title-textSize` | Title font size | `var(--bq-font-size--xxl)` |

> [!NOTE]
>
> Except for `--bq-page-title--divider-color`, the CSS custom properties for `bq-page-title` use shorthand names (e.g., `--paddingY`, `--title-fontWeight`) rather than the `--bq-*` prefix convention used by other BEEQ components. Set these variables directly on the `bq-page-title` element. Values set on an ancestor are overridden by the component's `:host` defaults.

> [!TIP]
>
> Learn more about [styling with shadow parts](https://www.beeq.design/guides/styles.md#component-shadow-dom-parts) and [CSS custom properties](https://www.beeq.design/guides/styles.md#global-css-custom-properties).

## Resources

> [card] [Interactive playground](https://storybook.beeq.design/?path=/story/components-page-title--default)
>
> Explore page title configurations in Storybook

> [card] [Source code](https://github.com/Endava/BEEQ/tree/main/packages/beeq/src/components/page-title)
>
> View the component source on GitHub


## Related topics

- [Breadcrumb](https://www.beeq.design/components/breadcrumb.md)
- [Changelog](https://www.beeq.design/releases/changelog.md)
- [Empty State](https://www.beeq.design/components/empty-state.md)
- [Dialog](https://www.beeq.design/components/dialog.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.