React Coverage Report

A code-coverage / lint summary table — the anatomy of an nyc / istanbul report. Per-file statement, branch, function, and line percentages are colored against a threshold, each row shows a line-coverage bar and uncovered lines, and the header carries the aggregate coverage with a PASS / FAIL badge.

Coverage

80.5%
PASS · ≥80%
FileStmtsBranchFuncsLinesLinesUncovered
src/aes/core.ts968910097
142, 210
src/aes/sbox.ts100100100100
src/aes/gcm.ts74618072
44-59, 88
src/kem/mlkem.ts91839592
301
src/util/rng.ts48335046
12-38
src/cli/index.ts83718884
5, 91-96

Installation

npx shadcn@latest add "https://kelvinui.com/registry/coverage-report.json"

Props

PropTypeDescription
filesCoverageFile[]Per-file coverage rows
thresholdnumberPass threshold in percent (default 80)
titlestringHeader title (default "Coverage")

Each CoverageFile is { path, statements, branches, functions, lines, uncovered? }. Values at or above the threshold read green, above 60% of it amber, below red; the header aggregates the mean and shows PASS/FAIL.

New components every week

Get the week's new Kelvin UI components and templates in one short email. No spam, unsubscribe anytime.