Skip to content
Klarhimmel UI

Audit, overview

Audit, overview previewAudit, overview preview

Install

npx shadcn add @klarhimmel/report-audit-overview
DetailsAbout, usage, props and more

A scored audit summary with scope, limitations and source provenance. An unassessed result is never rendered as zero.

Import

Import

import Block from '@/components/klarhimmel/blocks/report-audit-overview';
Also called
  • report/audit-overview
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

Open a scored website report with the verdict, sample scope and source caveat in one place. Use report-header when the document has no scored assessment.

Writing for it

- Name the assessed property and record the sampled page count in facts rather than implying a complete crawl. The sourceNote should say when the sample was taken and what its limitations are. - Supply a score only when the host has enough completed checks to calculate it. A null score means unassessed; a numeric zero remains a measured result.

Watch out for

The ring does not calculate an aggregate or decide which checks count. Keep aggregation rules in your audit service, and point the action at a section or destination that actually exists.

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 ReportAuditOverview from '@/components/klarhimmel/blocks/report-audit-overview';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ReportAuditOverview props={{
          "eyebrow": "Name the report type",
          "title": "Name the audit and its subject",
          "description": "Say what was checked, for whom and on what basis, and what the result does and does not tell.",
          "score": 68,
          "scoreLabel": "Name the score",
          "unavailable": "Not assessed",
          "verdict": "Say the verdict in one sentence, with what comes first.",
          "facts": [
            {
              "label": "Fact one",
              "value": "First value"
            },
            {
              "label": "Fact two",
              "value": "Second value"
            },
            {
              "label": "Fact three",
              "value": "Third value"
            }
          ],
          "source": "Say where the data came from",
          "sourceNote": "Say what is excluded and that this is a point in time.",
          "action": {
            "label": "Say where the action leads",
            "href": "#recommendations"
          }
        }} />
      </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.

PropTypeDefaultDescription
eyebrowstring'Name the report type'Text, up to 60 characters.
titlestring'Name the audit and its subject'Text, up to 120 characters.
descriptionstring'Say what was checked, for whom and …'Text, up to 300 characters.
scorenumber68See the type.
scoreLabelstring'Name the score'Text, up to 60 characters.
unavailablestring'Not assessed'Text, up to 100 characters.
verdictstring'Say the verdict in one sentence, wi…'Text, up to 160 characters.
facts{ label, value }[]3 itemsList of up to 6. Each item: label, value.
sourcestring'Say where the data came from'Text, up to 100 characters.
sourceNotestring'Say what is excluded and that this …'Text, up to 200 characters.
actionLink{…}See the type.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.