Origin is out. See it
HomeBlocksConversion funnel
Free · MITChartschartfunnelconversion

Conversion funnel

Visitors to paid with narrowing bars that fill in cascade, step-to-step drop-off percentages, and a slow flow shimmer on hover.

Full preview

Preview

Resize it, switch the theme, replay the entrance — or read the source.

Conversion funnel

Visitors to paid, one step at a time.

Overall 3.1%

Installation

Add the block to a project that already uses shadcn/ui.

bash
npx shadcn@latest add https://prequelui.terravidhal.me/r/conversion-funnel.json

Requires a project that already uses shadcn/ui on React and Tailwind CSS v4. The block is copied into your project as a single file you own and can edit.

Usage

Import the named export and render it with your own data.

Every prop is optional and ships with deterministic demo data, so a bare render shows the block at its default. Pass props to plug in your own data and formatters.

import { ConversionFunnel } from "@/components/prequel/conversion-funnel/conversion-funnel";

export default function DashboardPage() {
  return <ConversionFunnel />;
}

Props

Every prop is optional and ships with demo-data defaults.

PropTypeDescription
classNamestringExtra classes merged onto the root element.
titlestring—
descriptionstring—
stepsConversionFunnelStep[]Funnel stages, widest first. The first stage defines the 100% width.
formatValue(value: number) => string—
formatShare(share: number) => stringReceives the share of the top of funnel, e.g. 39.7.
formatDropoff(dropoff: number) => stringReceives the step-to-step drop-off, e.g. 60.3.

Accessibility

The rules every PrequelUI block follows, verified against this block's source.

Charts and graphics expose a text summary via role="img" and an aria-label describing the data.

Interactive charts respond to arrow keys, Home and End, and show tooltips on keyboard focus.

Every button carries a visible focus ring so keyboard users can always see where they are.

The block honours prefers-reduced-motion: animations are skipped and content is fully visible.

Live updates run on timers inside effects and pause when the block is off-screen or hovered.

More blocks