PageHeader

A standardized page header that provides consistent title and subtitle styling, right-aligned action buttons, breadcrumb navigation support, and an optional badge or status indicator next to the title.

Import

import { PageHeader } from '@wavebooking/aqua-fusion';

Preview

Loading preview...

Usage

<PageHeader
  title="Lessons"
  subtitle="Manage your surf lessons"
  actions={<Button>Create Lesson</Button>}
  badge={<Badge variant="success">Live</Badge>}
/>

<PageHeader
  title="Session Details"
  breadcrumbs={<Breadcrumb items={[{ label: 'Sessions', href: '/sessions' }]} />}
  size="lg"
/>

Props

PropTypeDefaultDescription
title*string-Main title of the page.
subtitlestring-Subtitle or description shown below the title.
actionsReactNode-Action buttons or elements aligned to the right.
breadcrumbsReactNode-Breadcrumb or back navigation shown above the title.
badgeReactNode-Badge or status indicator displayed next to the title.
classNamestring-Additional CSS classes for the header wrapper.
size'sm' | 'md' | 'lg''md'Title size variant.