Skip to main content

Page header

A page title block with optional breadcrumbs, a description, and a right-aligned actions slot. Exports the PageHeaderBreadcrumb type.

import { PageHeader, type PageHeaderBreadcrumb } from '@rtorcato/shadcn-ui/components/ui-extended/page-header'

Usage

<PageHeader
title="Settings"
description="Manage your workspace."
breadcrumbs={[
{ label: 'Home', href: '/' },
{ label: 'Settings' },
]}
actions={<Button>Save</Button>}
/>

Props

PropTypeDefaultDescription
titlestringPage title.
descriptionstringSubtitle text.
breadcrumbsPageHeaderBreadcrumb[]{ label, href? } trail.
actionsReact.ReactNodeRight-aligned action slot.
classNamestringWrapper class.