Updated
Funnel
ProCustomize
Steps5
Accent
Installation
ProFunnel is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/funnel
Loading your installation…
Usage
import { Funnel } from "@/components/uibrik/funnel/funnel";<Funnel title="Trial conversion" accent="" format={{}} onSelect={(step, index) => {}}/>Where to use Funnel
Sign-up conversion
Drop-off between steps reads as a slope, so the leakiest step is obvious.
Pairs with Bar List
Marketing dashboards
Each step's share of the start helps compare campaigns that begin at different sizes.
Pairs with Subscriber Funnel
Onboarding analysis
Hovering a slope shows exactly how many users stopped at each onboarding step.
Pairs with Revenue Dashboard
Props
Funnel- title
- Type string
- "Trial conversion"
- Names the funnel.
- accent
- Type string
- ""
- Bar colour. Empty uses the chart palette.
- steps
- Type { label: string; value: number }[]
- –
- One entry per step, in order. The first is everyone who entered.
- format
- Type Intl.NumberFormatOptions
- {}
- Formats every count, e.g. { style: "currency", currency: "USD" }.
- onSelect
- Type (step: { label: string; value: number }, index: number) => void
- –
- Called when a step is clicked, or picked with Enter.
- className
- Type string
- –
- Classes for the outer shell.