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
titlestring—Page title.
descriptionstring—Subtitle text.
breadcrumbsPageHeaderBreadcrumb[]—{ label, href? } trail.
actionsReact.ReactNode—Right-aligned action slot.
classNamestring—Wrapper class.