DetailHeader

App

Page header for detail/record views: title, subtitle, status badge, action buttons, and optional tab navigation.

With actions, no tabs

Preview

Invoice #1042

Pending

Created 3 days ago by Jane Doe

Code
<DetailHeader
  title="Invoice #1042"
  subtitle="Created 3 days ago by Jane Doe"
  status="Pending"
  statusVariant="warning"
>
  <Button variant="outline" size="sm">Edit</Button>
  <Button variant="primary" size="sm">Approve</Button>
</DetailHeader>

With tabs

Preview

Order #8821

Shipped

Last updated 2 hours ago

Code
<DetailHeader
  title="Order #8821"
  subtitle="Last updated 2 hours ago"
  status="Shipped"
  statusVariant="success"
  tabs={[
    { value: 'overview', label: 'Overview' },
    { value: 'items',    label: 'Items'    },
    { value: 'history',  label: 'History'  },
    { value: 'notes',    label: 'Notes', disabled: true },
  ]}
  defaultTab="overview"
>
  <Button variant="ghost" size="sm">Print</Button>
  <Button variant="primary" size="sm">Track</Button>
</DetailHeader>
Sourcemodules/app/DetailHeader.tsx