shadcn.io is not affiliated with official shadcn/ui
Flow Diagram Workflow Block for React
A workflow section for a content operations tool: six steps drawn as a flow with an icon node each, arrows between them and a loop from Review back to Draft, with each step's sub-steps in a hover card.
Installation
Overview
A workflow section for React with Base UI, written for Looproad, a fictional content operations tool. Six steps, Pitch, Brief, Draft, Review, Publish and Measure, sit in a framed figure as a flow: a node with its own icon for each step, one line behind them with an arrow between neighbours, and a bracket over the row that carries the loop from Review back to Draft, labelled "Up to two rounds". Hovering or focusing a node opens a hover card with the step's sub-steps and the tool it uses; the very same sub-steps are in the list as text, so nothing is hover-only. On a phone the flow becomes a vertical list on a rail, with every step's sub-steps shown, and the loop is a sentence in the caption. It's built from Hover Card, Button and Guides, with a CSS entrance and your theme's tokens for every colour. For content, support, sales or engineering teams that need to show how work moves and where it can go back. The steps are example data.
FAQ
How do I change the steps and the loop?
The steps are STEPS at the top of the file: each has a name, a lucide icon, a one-line summary, substeps and the tool it uses. The flow is a six-column grid on wide screens, so keep six, or change md:grid-cols-6 and the percentages in the loop bracket (start-[calc(100%*2.5/6)] and w-[calc(100%/6)] place it over the third and fourth columns). The bracket is drawn by hand, so point it at any two neighbouring steps by changing those two numbers.
What if I can't hover?
Nothing is hover-only. The node is a real button, so keyboard focus opens its card the same way a pointer does. The sub-steps are also a list inside each step: read out by screen readers on every screen, shown in full on a phone, and shown on any touch screen, where hover doesn't exist. The card is a convenience for wide screens with a mouse, not the only way to the text.
How is the flow read by a screen reader?
It's an ordered list with six items, each with an h3 for the step's name. The node button is named by that heading and described by its list of sub-steps, so it reads "Review, button, an editor reads it against the brief…". The arrows, the line and the loop bracket are decorative and hidden; the loop is stated in words, in Review's summary and in the caption under the figure.
How does the flow fit on a phone?
It stops being a row. Below md each step becomes a row of its own on a vertical rail, with the node at the start and its text at the end, and the sub-steps are always visible. The arrows between nodes and the bracket over the row are for wide screens only. Nothing scrolls sideways at 320 pixels.
Related
- Pro
Duration Table Methodology
Principles and processA methodology section for an engineering consultancy: a to-scale bar of five phases across six weeks, over a framed table with each phase's work, tools as badges and duration.
- Pro
Phase Tabs Approach
Principles and processA process section for a product studio: four numbered phase tabs, and under the open one a split panel with what the studio does, what the client gets and who is in the room.
- Pro
Vertical Steps Journey
Principles and processA customer journey section for a CRM: the first 90 days as a vertical stepper with the catalog Steps, each stage with its timing, its hands-on time and its key action, and a line that says which stage you are in.
- Pro
An onboarding process section for an HR company's own about page: a live checklist for the first 30 days, grouped by week, with a running count and bar, a tip from your buddy for each week, and ticks that stay on this page for this visit.
- Pro
Stepper Wizard Progression Features
Timelines and stepsA working CSV import wizard in a framed card: Upload, Map columns, Preview and Import, with real Back and Next buttons, selects that match columns to fields and a preview that follows the choices.
- Pro
Hover Preview FAQ
Ways to revealA FAQ for a courier tracking portal where hovering or focusing a question shows a hover card with a one-line summary, and opening it shows the full answer.