Skip to content
mdxcn is now part of Shadcn Labs. details

funnel

GraphFunnel

Steps that narrow as people drop off. Write `- 12,400 docs`. For a plain ranking use Rank, and for a process use Flow.

use it
Good for steps that get narrower as people drop off.
instead
A ranked list is Rank. A process diagram is Flow.

install

[ INSTALL ]
  1. docs12,400
  2. copy4,10033%
  3. ship8607%
<GraphFunnel title="INSTALL" stage="ship">

- 12,400 docs
- 4,100 copy
- 860 ship

</GraphFunnel>

install

command

signup

[ SIGNUP ]
  1. visit8,000
  2. start2,40030%
  3. verify96012%
  4. paid1802%
<GraphFunnel title="SIGNUP" ticks={16}>

- 8,000 visit
- 2,400 start
- 960 verify
- 180 paid

</GraphFunnel>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
stepsFunnelStep[]—label, value, and optional display string for the count. Optional when children are Markdown.
childrenMarkdown—- 4,100 copy
ticksnumber20Width of the first bar, in characters.
stagestring—Step label to focus. Other rows recede.
glyphs"shade" | "ascii" | "hash" | "bar" | string[]"shade"Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters.
palette"mono" | "duo" | "multi""mono"mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents.
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.