Skip to main content
Clever Ops

Gym Stats Board

The gym's numbers board, members, classes a week, and PBs this month counting up in heavy tabular figures under bold condensed labels, with a plain-spoken honesty footnote.

Preview & code

Loading Gym Stats Board preview

Installation

pnpm dlx shadcn@latest add @cleverui/gym-stats-board

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { GymStatsBoard } from '@/components/blocks/gym-stats-board'
Exampletsx
'use client'

import { GymStatsBoard } from '@/components/blocks/gym-stats-board'

export default function GymStatsBoardDemo() {
  return (
    <div className="py-8 sm:py-12">
      <GymStatsBoard
        eyebrow="Numbers don't lie"
        heading="The board"
        note="Counted on the first of every month. No rounding up."
        highlight={0}
        duration={0.6}
        stats={[
          { value: 412, label: 'Members' },
          { value: 38, label: 'Classes a week' },
          { value: 61, label: 'PBs this month' },
          { value: 14, label: 'Coaches on floor' },
        ]}
      />
    </div>
  )
}

API reference

GymStatsBoard accepts the following props.

PropTypeDefaultDescription
headingstring'The board'
eyebrowstringcoach-voice kicker, e.g. NUMBERS DON'T LIE
stats*GymStatsBoardStat[]3–4 entries, e.g. 412 members, 38 classes a week
highlightnumber0index of the stat whose numeral takes the single primary accent
durationnumber0.6seconds for the count-up, punchier than a SaaS band
notestringhonesty footnote in plain sans

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface GymStatsBoardStat {
  value: number
  label: string
  prefix?: string
  suffix?: string
}

Frequently asked questions

How do I install the Gym Stats Board component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/gym-stats-board`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Gym Stats Board require?

Gym Stats Board uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Gym Stats Board to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services