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

flow

GraphFlow

A process drawn along dashed arrows. Write one line per path with the steps separated by →, and bold the step you're on. For a dated list use Timeline, and for a schedule use Gantt.

use it
Good for a pipeline, a request path, or walking through a change.
instead
A dated list is Timeline. A schedule with start and end is Gantt.

optimistic ui

[ OPTIMISTIC UI ]
tap
server
update
tap
update
server syncs
<GraphFlow title="OPTIMISTIC UI">

tap → server → update

tap → **update** → *server syncs*

</GraphFlow>

install

command

publish path

[ PUBLISH PATH ]
write
review
ship
<GraphFlow title="PUBLISH PATH">

write → review → ship

</GraphFlow>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
rowsFlowRow[]—Each row is a sequence of nodes. Optional when children are Markdown.
childrenMarkdown—request → **middleware** → handler
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.