PageHeader
Consistent H1 + description + actions row above page content.
import { PageHeader }from "@/components/ui"
Title, description, actions
Users
People with access to this organisation.
Full source
The complete component, read from src/components/ui/page-header.tsx.
page-header.tsx
export interface PageHeaderProps {
title: React.ReactNode;
description?: React.ReactNode;
actions?: React.ReactNode;
}
export function PageHeader({ title, description, actions }: PageHeaderProps) {
return (
<div className="mb-6 flex items-start justify-between gap-6">
<div className="min-w-0">
<h1 className="text-2xl font-semibold tracking-tight text-text">{title}</h1>
{description && (
<p className="mt-1 max-w-xl text-sm leading-relaxed text-text-secondary">
{description}
</p>
)}
</div>
{actions && <div className="flex shrink-0 items-center gap-2">{actions}</div>}
</div>
);
}