Skip to content
Viewership Inquire
Astro UI

Stats Band.

Headline figures on a dark band, each with a label, a footnote and a source line.

ProofSectionNo dependencies Original, MIT

.md

The repair bench, last year

Repairs completed
11,400
Up from 8,900
Days average turnaround
2.1
Fixed, not replaced
94%
Packs resold
3,200

Sample figures for a fictional brand.

Style

Using Claude Code? Give it the agent prompt and skip these steps.

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy StatsBand.astro

    Paste into src/components/viewership/stats-band/

  3. Use it

    Page.astro
    ---
    import StatsBand from "../components/viewership/stats-band/StatsBand.astro";
    ---
    
    <StatsBand />

Props 5

PropTypeDefaultDescription
title string · Small heading above the figures.
stats { value: string; label: string; note?: string }[] · Figures. Three or four read best.
source string · Where the numbers come from.
tone "ink" | "page" "ink" Dark band or page ground.
as "h2" | "h3" "h2" Heading element.

Source 1 file

Original, MIT.