Skip to content
HomeCobalt

Page header

Heads a record's page: what kind of thing it is, its name as the page's heading, one line about it, its picture and the actions on it, the same height while it loads as when it has loaded.

Examples

The head of a person's record: what they are, their name as the page's heading, one line about them, their picture and the two actions on them.

Portfolio manager

Maya Chen

Juniper Ridge Advisers, Boston. Manages 4 funds with $4.8B in assets.

PendingOn its first load the header holds each line it will have with a skeleton line of the same size, and the record replaces them with no change in height.

Gross assets
As of the June filing
Funds advised
As of the June filing

Usage

Use it when

  • A record's page: a fund, an adviser, a person, a booking.
  • A panel that shows one record beside a list, with headingLevel={2}.

Use something else when

  • A section of a page. Use Section instead.
  • The app's top bar. Use Nav instead.
  • A list's title with its count and filters. Use Section instead.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/page-header.json
import { PageHeader } from "@/components/cobalt/ui/page-header"