uibrik

Funnel

New

Preview

Customize

Steps5
Accent

Usage

import { Funnel } from "@/components/uibrik/funnel/funnel";

<Funnel />

Installation

npx shadcn@latest add https://uibrik.com/r/funnel.json
Adds the files to components/uibrik/funnel and installs @number-flow/react, @tabler/icons-react, motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/funnel.

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.