Components

BasePageHeader

The title row of every page, with the description and the primary actions.

components/ui/BasePageHeader.vue
View in the demo

Example

Card title

A short supporting description.

In a page, keep the default title-tag="h1"; the example uses h2 only because it sits inside this documentation page. Do not wrap the header in a v-row or v-col: it renders its own row.

Outlined buttons in #actions get the surface background automatically so they stand out from the page canvas.

Detail and editor pages (an invoice, an order, a customer, a course, a help article) pass back with their list and a back-label. The small "Back to …" link above the title returns to the previous page of the app, so the list comes back with its view, search and filters (?view=, ?q=); when the page was opened from a link, a bookmark or another site, or right after signing in, it goes to the back route instead. The same rule is available to your own buttons through useGoBack().

Page title

A short description of what this page is for.

vue
<BasePageHeader
  back="/billing/invoices"
  :back-label="$t('common.backTo', { page: $t('nav.invoices') })"
  :title="invoice.id"
/>

The link names where it goes, so it needs no tooltip, and the title stays aligned with the breadcrumb, the description and the cards below. On phones, where the breadcrumb is hidden, it is the way back. In right-to-left languages the arrow points right.

API

Props

Name
Type
Default
Description
titlestring—The page title.
descriptionstring—A sentence under the title.
title-tagstring"h1"The heading element. Keep h1 for page titles.
content-classstring—Extra classes for the title column.
compactbooleanfalseOn phones, hides the description and keeps the title and actions on one row (the actions wrap below a title that does not fit), so apps and lists reach their content sooner. Pair it with BaseOverflowMenu for secondary actions.
backstring | J | W—Shows a small back link with an arrow above the title. It returns to the previous page of the app, so a list keeps its view and search, or to this route when the page was opened directly. Detail and editor pages pass their list.
back-labelstring—The text of the back link, such as $t('common.backTo', { page }). Defaults to "Back".

Slots

Name
Slot props
Description
#default—Replaces the title, for example to add a highlighted name.
#description—Replaces the description.
#actions—Buttons aligned to the end of the row. Without compact, they move to their own line under the title while the header is narrower than 720px (a container query, so the open sidebar counts).
© 2026 melsami UI.
Developer documentation for melsami UI.