ham7a311

Flow Funnel Stats

Component

About

An animated SVG funnel chart (sankey-style) that tracks multiple traffic sources through conversion stages, with each source keeping its own color band from first visit to final conversion.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Flow Funnel Stats to your project and fits it to your theme.

Code

How Flow Funnel Stats is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { FlowFunnelStats } from "@/components/ui/flow-funnel-stats";

export default function Demo() {
  return (
    <div className="flex min-h-full w-full items-center justify-center px-4 py-12 bg-[#f1eee7] text-[#1b1a17]">
      <div className="w-full max-w-3xl">
        <p className="font-mono text-[11px] uppercase tracking-[0.16em] text-[#2a78d6]">
          Wahiba Sands Camps · bookings
        </p>
        <h2 className="mt-3 text-2xl font-semibold tracking-tight sm:text-3xl">
          Where a night in the dunes is won and lost
        </h2>
        <p className="mt-2 max-w-md text-sm leading-relaxed text-[#6f6a62]">
          Last week’s visits, followed from where they came in to a confirmed
          booking.
        </p>
        <FlowFunnelStats
          className="mt-8"
          theme="paper"
          title="Booking funnel by source"
          stages={["Visits", "Started booking", "Chose dates", "Booked"]}
          sources={[
            { name: "Instagram", values: [4200, 620, 330, 180] },
            { name: "Search", values: [3100, 740, 520, 330] },
            { name: "Referral", values: [1300, 310, 230, 160] },
            { name: "Direct", values: [900, 260, 190, 140] },
          ]}
        />
      </div>
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    137
  • Route Globe

    Route Globe

    125
  • Glass Tiles

    Glass Tiles

    109
  • Glyph Swell

    Glyph Swell

    50
  • Orbit Ring Stats

    Orbit Ring Stats

    47
  • Ask Bar

    Ask Bar

    38
  • Glass Ribbons

    Glass Ribbons

    30
  • Intent Label

    Intent Label

    29