Flowchart
ProNewTrigger, condition, and action workflow steps on a dotted canvas with animated test-run pulses and inline step insertion.
Installation
pnpm dlx shadcn@latest add @viewport/flowchart
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| nodes* | FlowNode[]Nodes in execution order, rendered top to bottom. | — |
| stepDuration | numberMilliseconds each node stays active during a test run. | 900 |
| onAddStep | () => voidCalled when a new action step is appended. | — |
| className | string | — |
Accessibility
- Rendered as an ordered list with a status region announcing the running step.
- Each node exposes its pass/running state to screen readers.
- Pulse animations shorten and skip motion under reduced motion.