Funnel
How many go on at each step of a path: visited, signed up, created a project, paid. Each step says how many of the step before went on.
import { Funnel } from '@sypnia/ui/react'
From visit to paying
From visit to paying
Last 30 days
- Visited the site12.4K
- Signed up1,86015%
- Created a project1,12060%
- Paid21019%
View as table
| # | of the previous step | of the first step | |
|---|---|---|---|
| Visited the site | 12.4K | — | 100% |
| Signed up | 1,860 | 15% | 15% |
| Created a project | 1,120 | 60% | 9% |
| Paid | 210 | 19% | 2% |
Code
import { Funnel } from '@sypnia/ui/react';
// How many go on at each step, and how many of the step before.
export default function SignUp() {
return <Funnel title="From visit to paying" subtitle="Last 30 days" steps={[{ label: 'Visited the site', value: 12400 }, { label: 'Signed up', value: 1860 }, { label: 'Created a project', value: 1120 }, { label: 'Paid', value: 210 }]} />;
} When to use it
Use it when
- Paths with steps in a fixed order.
Do not use it when
- Parts of one whole: use PartToWhole.
For everyone
- Each step is named with its value and the share of the previous step.
- On phones the bar goes under the name.
Props
| Funnel | Type | Default |
|---|---|---|
stepsrequired | { label: string; value: number; }[] | |
titlerequired | ReactNode | |
empty | ReactNode | |
error | ReactNode | |
formatValue | Fmt | |
height | number | |
loading | boolean | |
subtitle | ReactNode |