166
The top of a dashboard: three trend cards, a this-period-versus-last chart you can scrub day by day, and a goal ring that fills as sales come in.
akakpi board·overview
Run this in any project set up for the shadcn CLI. It copies the Dashboard Header source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/dashboard-header.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 { DashboardHeader } from "@/components/dashboard-header";
export default function Page() {
return <DashboardHeader />;
}A free React block in the Dashboards collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Dashboard Header source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| days | DashboardDay[] | fallbackDays |
| title | string | "Overview" |
| currency | string | "$" |
| dailyGoal | number | 2000 |
| defaultRange | DashboardRange | 30 |
| className | string | — |