Audit, module scores


Install
npx shadcn add @klarhimmel/report-audit-modulesDetailsAbout, usage, props and more
A grid of audit modules with explicit scored, unavailable and pending states; findings stay next to their score.
Import
Import
- 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
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 section' | Text, up to 60 characters. |
title | string | 'Say what was assessed' | Text, up to 120 characters. |
description | string | 'Say how to read the modules, and wh…' | Text, up to 300 characters. |
modules | { title, state, score, status, findings }[] | 4 items | List of 1 to 8. Each item: title, state ('scored' | 'unavailable' | 'pending'), score, status, findings. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |