165
A year of sales on one page: pick a number up top and the monthly chart, best sellers and channel split all follow it, with a line or bar view to taste.
akametrics·dashboard
Run this in any project set up for the shadcn CLI. It copies the Sales Overview source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/sales-overview.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { SalesOverview } from "@/components/sales-overview";
export default function Page() {
return <SalesOverview />;
}A free React block in the Dashboards collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Sales Overview source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| years | SalesYear[] | fallbackYears |
| title | string | "Sales overview" |
| currency | string | "$" |
| className | string | — |