# Audit, module scores

- **[Sections](/blocks/)**
- **[Report](/blocks/report/)**
- **Audit, module scores**

A grid of audit modules with explicit scored, unavailable and pending states; findings stay next to their score.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/report-audit-modules
  ```
- **Import**

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

Also called

- report/audit-modules

- **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**: Show independent audit checks after the overall verdict so the reader can see coverage as well as results. Use report-table for comparisons that have no bounded module scores.
- **Writing for it**: - Use the state field to distinguish scored, pending and unavailable checks. Give an unavailable module a status sentence explaining why it was excluded; avoid reporting a fabricated failure score.
- Put concrete observations in findings, with one short statement per entry. Each module should carry enough evidence to explain its score without repeating the entire report introduction.
- **Watch out for**: Changing a module to unavailable hides its numeric reading even if an old score is still supplied. These cards never infer completion from the presence of findings.

## Pairs well with

- **[Audit, overview](/blocks/report/audit-overview)**
- **[Audit, recommendations](/blocks/report/audit-recommendations)**

## 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 ReportAuditModules from '@/components/klarhimmel/blocks/report-audit-modules';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ReportAuditModules props={{
          "eyebrow": "Name the section",
          "title": "Say what was assessed",
          "description": "Say how to read the modules, and what a missing result means.",
          "modules": [
            {
              "title": "Name the first module",
              "state": "scored",
              "score": 82,
              "status": "Assessed",
              "findings": [
                "Say one thing that was found",
                "Say a second thing that was found, briefly"
              ]
            },
            {
              "title": "Name the second module",
              "state": "scored",
              "score": 45,
              "status": "Needs attention",
              "findings": [
                "Say one thing that was found",
                "Say a second thing that was found, briefly"
              ]
            },
            {
              "title": "Name the third module",
              "state": "unavailable",
              "score": null,
              "status": "Say why it was not scored and what that means",
              "findings": [
                "Say what could not be checked, and why"
              ]
            },
            {
              "title": "Name the fourth module",
              "state": "pending",
              "score": null,
              "status": "Say what it is waiting for",
              "findings": []
            }
          ]
        }} />
      </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.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **modules**: List of 1 to 8. Each item: title, state ('scored' | 'unavailable' | 'pending'), score, status, findings.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/review/summary)

[Next](/blocks/report/audit-overview)
