Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsProof

Stats band

A band of big numbers with labels.

Preview

Version
Preview theme color
More themes

Each number counts up once when the band scrolls into view. The final number is in the page before JavaScript and for screen readers. With reduced motion turned on, it renders the plain layout.

By the numbers

Sample data.

Sample installs
12,000+
Sample uptime
99.9%
Sample countries
48
Sample rating
4.8

By the numbers

Sample data.

Sample installs
12,000+
Sample uptime
99.9%
Sample countries
48
Sample rating
4.8

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { StatsBand } from "@/components/custom/stats-band";

<StatsBand
  title="By the numbers"
  stats={[
    { value: 12000, label: "Installs", suffix: "+" },
    { value: 99.9, label: "Uptime", suffix: "%", decimals: 1 },
  ]}
/>
import { StatsBandMotion } from "@/components/custom/stats-band/stats-band-motion";

<StatsBandMotion stats={stats} />

Props

PropTypeDefaultDescription
stats* (required){ value; label; prefix?; suffix?; decimals? }[]–2 to 4 read best. Use real numbers.
titlestring–Heading (h2).
descriptionstring–Line under the heading.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
stats* (required){ value; label; prefix?; suffix?; decimals? }[]–2 to 4 read best. Use real numbers.
titlestring–Heading (h2).
descriptionstring–Line under the heading.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • A description list: each label is the term and the number its value.
  • Numbers format with a fixed locale, so server and browser match.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.