# Snapshot, module

- **[Sections](/blocks/)**
- **[Snapshot](/blocks/snapshot/)**
- **Snapshot, module**

One research module of a snapshot as a card: reading (skeleton), ready (headline, summary, suggestions with priority and effort chips and an impact line, then findings…

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/snapshot-module
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/snapshot-module';
  ```

Also called

- snapshot/module

- **About**: One research module of a snapshot as a card: reading (skeleton), ready (headline, summary, suggestions with priority and effort chips and an impact line, then findings, numbered source markers that link to the sources list in the card)…
- **Category**: The live snapshot of a site: progress narration, the profile, one card per research module and the numbered sources behind it. Rendered in a page island that re-renders on each poll. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: One research module of a snapshot as a card, such as competitors or audience. It also shows the module while it is still running. Use `snapshot-progress` for the live narration above the cards and `snapshot-profile` for the card that introduces the site.
- **Writing for it**: - The title (80 characters) names the module. Set status honestly, because it picks what is drawn: pending and running show a skeleton, unsure shows only the note, failed shows a fixed sentence, ready shows the output.
- In output, headline holds 300 characters and summary 2000. Each item is a suggestion or a finding, and suggestions get priority and effort chips plus an impact line.
- Link an item to a source by listing the source id in the item. The card then shows numbered markers that jump to the sources list inside the same card.
- **Watch out for**: Nothing from output is drawn unless status is ready, and the note only when status is unsure. Setting output on a running card shows the skeleton anyway, and a marker pointing to a source id that does not exist is dropped.

## Pairs well with

- **[Snapshot, profile](/blocks/snapshot/profile)**
- **[Snapshot, progress](/blocks/snapshot/progress)**
- **[Sources list](/blocks/snapshot/sources)**

## 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 SnapshotModule, { spec } from '@/components/klarhimmel/blocks/snapshot-module';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <SnapshotModule props={spec.defaults} />
      </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 80 characters.
- **status**: One of 'pending', 'running', 'ready', 'unsure', 'failed'.
- **note**: Text, up to 400 characters. Optional; empty is not rendered.
- **output**: Fields: headline, summary, items, sources. Optional; empty is not rendered.
- **collapse**: Fields: findings (optional), sources (optional). Optional; empty is not rendered.
- **words**: Fields: reading (optional), failed (optional), sources (optional), suggestions (optional), findings (optional), priority (optional), effort (optional), impact (optional). Optional; empty is not rendered.
- **effortWords**: Fields: small (optional), medium (optional), large (optional). Optional; empty is not rendered.
- **kindWords**: Fields: crawl (optional), search (optional), ai_answer (optional), dataset (optional), brief (optional). Optional; empty is not rendered.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/report/timeline)

[Next](/blocks/snapshot/profile)
