Componentcharts0.64 KB gzipZero dependencies
Funnel Chart
Horizontal funnel stages showing conversion percentages between steps
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add funnel-chartOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { FunnelChart } from "@/components/ui/funnel-chart"; <FunnelChart stages={stages} />Source code
funnel-chart.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| stages | FunnelChartStage[] | Configures stages. (Default: []) |
| height | number | Configures height. (Default: 300) |