About
A conversion funnel for shadcn/ui: each step as a bar, the drop-off between steps, and overall conversion at the end. It is plain HTML rather than SVG, which keeps it easy to restyle and accessible by default.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Funnel Chart to your project and fits it to your theme.
Code
How Funnel Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { FunnelChart } from "@/components/ui/dashboardcn-funnel-chart"
const steps = [
{ name: "Link opened", value: 197, color: "var(--color-lime-400)" },
{ name: "Started", value: 110, color: "var(--color-blue-500)" },
{ name: "Completed", value: 77, color: "var(--color-violet-500)" },
{ name: "Converted", value: 38, color: "var(--color-pink-500)" },
]
export default function FunnelChartFlowDemo() {
return (
<div className="w-full max-w-lg">
<FunnelChart variant="flow" steps={steps} />
</div>
)
}
















