Report, header


Install
npx shadcn add @klarhimmel/report-headerDetailsAbout, usage, props and more
The top of a report: what kind it is (Status, Decision, Research), the title, a summary and a few facts (date, author, refs).
Import
Import
- report/header
- Category
- A document for a reader: key figures, decisions with a recommended default, long-cell tables, timelines, callouts, sources and prose. Rendered to one HTML file by kh-report. New project? Set it up once: /get-started/installation.
Notes
When to use it
The top of a report: what kind of report it is, its title, a short summary and a few facts such as date and author. It is the only report block that draws the page's h1, so use it once, first. For a marketing page, hero-minimal does the opening job instead.
Writing for it
- Put the report type in the eyebrow (40 characters), for example Status or Research, so a reader knows the genre before reading the title. - The title holds 160 characters and wraps balanced. Say what was found or decided, not just the topic, because it is also the section label for screen readers. - Meta takes up to 8 label and value pairs, labels to 30 characters and values to 120. Keep to the facts a reader would ask for first, such as date, owner and a reference.
Watch out for
The title is rendered as h1 and the container is 54rem wide, narrower than marketing sections. A second report-header on the same page gives you two h1 elements.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the kind' | Text, up to 40 characters. |
title | string | 'Say what the report concerns' | Text, up to 160 characters. |
summary | string | 'Say in two or three sentences what …' | Text, up to 1200 characters. |
meta | { label, value }[] | 3 items | List of up to 8. Each item: label, value. |
review | Link[] | - | List of up to 4. Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |