Skip to content

Page Header

Last updated 28 Nov 2026

NbPageHeader is the top of a page: where it sits, what it is called, the one state it is in, the few facts that define it, and what can be done to it. It renders the page's one <h1>.

A record view ​

vue
<template>
  <NbPageHeader :title="record.title" :actions="actions" sticky>
    <template #eyebrow>
      <span>Part of</span>
      <RouterLink :to="parentRoute">{{ record.parent.title }}</RouterLink>
      <code>{{ record.key }}</code>
    </template>
    <template #status>
      <NbBadge :variant="statusVariant">{{ statusLabel }}</NbBadge>
    </template>
    <template #facts>
      <NbDefinitionList layout="auto" compact>
        <NbDefinitionListItem term="Owner">{{
          record.owner
        }}</NbDefinitionListItem>
        <NbDefinitionListItem term="Target">{{
          record.target
        }}</NbDefinitionListItem>
      </NbDefinitionList>
    </template>
  </NbPageHeader>
</template>

<script setup lang="ts">
import type { IActionGroupItem } from '@nubisco/ui'

const actions: IActionGroupItem[] = [
  {
    id: 'edit',
    label: 'Edit',
    icon: 'pencil-simple',
    variant: 'primary',
    priority: 'primary',
    onSelect: edit,
  },
  {
    id: 'archive',
    label: 'Archive',
    icon: 'archive',
    variant: 'ghost',
    onSelect: archive,
  },
]
</script>

Actions as a slot ​

Use the slot when the actions are not a list of buttons, a split button or a menu, say. A filled primary in the slot still counts towards the one-primary warning.

Slot actions cannot fold to icons the way the actions prop does. On a phone, when they do not fit beside the title, they drop under it, so a long title keeps the row.

vue
<NbPageHeader title="Quarterly report">
  <template #actions>
    <NbButton variant="tertiary">Export</NbButton>
    <NbButton variant="primary">Publish</NbButton>
  </template>
</NbPageHeader>

Props ​

PropTypeDefaultDescription
titlestringundefinedThe page's name, as its one <h1>. The title slot replaces it.
actionsIActionGroupItem[]undefinedThe page's actions, through NbActionGroup with overflow="phone".
stickybooleanfalseStick to the top of the scroll container, with a surface and a rule under it.

Slots ​

SlotDescription
eyebrowAbove the title: what the thing belongs to, its key.
titleReplaces title, inside the <h1>: an inline editor, a title with a mark.
statusOne NbBadge. Warns in development when it holds more than one element.
descriptionUnder the title: one or two sentences.
factsUnder the description: an NbDefinitionList with layout="auto".
actionsAfter the actions prop's group: any other control.