Report with real bars
A score in the colour of its status, categories with bars that fill, and a button that expands the rest.
UniversalUsed in production
Install
npx finepieces add score-reportOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/score-report.jsonexample.tsx
import { ScoreReport } from "@/components/fine-pieces/score-report";
export default function Example() {
return (
<ScoreReport
host="kofiandco.com"
score={74}
categories={[{ name: "Speed", value: 92 }, { name: "SEO", value: 71 }, { name: "Accessibility", value: 58 }, { name: "Mobile", value: 81 }]}
counts={{ good: 14, check: 6, issues: 3 }}
items={["Compress the three large photos on the homepage", "Give the menu buttons a name for screen readers", "Put the opening hours on the page as text too"]}
/>
);
}