Stats 02

New

A split section: heading and paragraph on the left, a two-by-two grid of stat cards on the right, each with an inline-SVG sparkline and its change on the last quarter.

Installation

pnpm dlx shadcn@latest add https://kagadmodyaa.vercel.app/r/stats-02.json

Needs a React + Tailwind project set up with shadcn. Copies the block's files into your project, along with the components it uses, so you can edit all of it.

Usage

This block is a section, not a page. Import it where you want it, alongside your other sections.

import { Stats02 } from '@/components/stats-02/stats-02'

export default function Page() {
  return (
    <main>
      <Stats02 />
    </main>
  )
}

Files

What the command adds to your project, and where.

  • components/stats-02/stats-02.tsx

    The section. Import it into any page and render it; it fills the width of its parent.

Links, copy and the product name are placeholders; swap in your own. Where a block has a form, its submit handler is a stub for your own request.

More in Stats