# Report, sources

- **[Sections](/blocks/)**
- **[Report](/blocks/report/)**
- **Report, sources**

Numbered sources: a label, the address (shown in full) and a note on what it was used for. Only http(s) and mail addresses become links.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/report-sources
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/report-sources';
  ```

Also called

- report/sources

- **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 numbered list of references at the end of a report, with the full address shown and a note on what each was used for. For sources behind a research snapshot with kinds and fetch dates, use `sources-list` instead.
- **Writing for it**: - The label is required and holds 200 characters. Name the document or page by its own title, because the label is what becomes the link text.
- The url field holds 500 characters and is printed under the label as plain monospace text, so the reader can see where the link goes before clicking.
- Use note (300 characters) for what you took from the source, for example which figure or claim, so a reader can weigh it without opening the link.
- **Watch out for**: Only addresses starting with http, https or mailto become links. Anything else, such as a file path or a bare domain, is shown as plain text under an unlinked label.

## Pairs well with

- **[Report, prose](/blocks/report/prose)**
- **[Report, table](/blocks/report/table)**
- **[Report, decisions](/blocks/report/decisions)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import ReportSources from '@/components/klarhimmel/blocks/report-sources';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ReportSources props={{
          "title": "Name the list",
          "lead": "",
          "items": [
            {
              "label": "Name a first source",
              "url": "https://example.com/specs/component-directory",
              "note": "Say what it was used for, in a line"
            },
            {
              "label": "Name a second source",
              "url": "https://example.com/docs/publish-mode",
              "note": ""
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## 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.

- **title**: Text, up to 100 characters.
- **lead**: Text, up to 300 characters.
- **items**: List of 1 to 40. Each item: label, url, note.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/report/prose)

[Next](/blocks/report/stats)
