259
A hero led by one giant figure that rolls up digit by digit as the itemised statement beneath it prints line by line, landing on a total that matches, with a period switch that re-tallies both.
akahero·landing page·big number
Run this in any project set up for the shadcn CLI. It copies the Tally Hero source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/tally-hero.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 { TallyHero } from "@/components/tally-hero";
export default function Page() {
return <TallyHero />;
}A free React block in the Heroes collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Tally Hero source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| periodsrequired | TallyPeriod[] | — |
| defaultPeriod | string | — |
| eyebrow | string | — |
| description | string | — |
| ctarequired | { label: string; href: string } | — |
| note | string | — |
| statementLabel | string | "Statement" |
| totalLabel | string | "Total" |
| reference | string | — |
| reconciledLabel | string | "Reconciled" |
| currency | string | "USD" |
| locale | string | "en-US" |
| className | string | — |