Componentcharts0.64 KB gzipZero dependencies

Funnel Chart

Horizontal funnel stages showing conversion percentages between steps

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add funnel-chart

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { FunnelChart } from "@/components/ui/funnel-chart"; <FunnelChart stages={stages} />

Source code

funnel-chart.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxfunnel-chart.tsx90 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface FunnelChartStage {  label: string;  value: number;  conversion?: number;  color?: string;} export interface FunnelChartProps extends React.HTMLAttributes<HTMLDivElement> {  stages: FunnelChartStage[];  height?: number;} export function FunnelChart({

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { FunnelChart } from "@/components/ui/funnel-chart"; <FunnelChart />
PropTypeDescription
stagesFunnelChartStage[]Configures stages. (Default: [])
heightnumberConfigures height. (Default: 300)