Skip to content

PageHeader

The title block at the top of a page, with a pretitle above the title and buttons on the end side.

Fill the actions block with PageHeader:Actions: it lays the buttons out in a btn-list on the end side, and the title keeps coming from the props.

Direct children replace the content block, which holds the whole grid row: the pretitle and title props are no longer rendered. Rebuild the .row yourself, here to add an avatar next to the title.

Prop Type Default Description
pretitle string? null Rendered with PageHeader:Pretitle
title string? null Rendered with PageHeader:Title

Other attributes go to the root <div class="page-header d-print-none">.

Component Renders
PageHeader:Pretitle <div class="page-pretitle">
PageHeader:Title <h2 class="page-title">
PageHeader:Actions <div class="col-auto ms-auto"> around a <div class="btn-list">
Block Default
pretitle PageHeader:Pretitle with the pretitle prop, when set
title PageHeader:Title with the title prop, when set
actions Nothing: put a PageHeader:Actions in it
content A .row: a .col around pretitle and title, then actions