Step 1
Discover
Bring the right context and people together.
Explain a process with selectable steps and a matching detail panel.
Show the important steps without making visitors guess what comes next.
Step 1
Bring the right context and people together.
npx shadcn@latest add @pixeldosa/workflow-sectionRequires `cn` at `@/lib/utils`. Give each step a stable unique id and provide a detail node only when it adds useful context beyond the description.
<WorkflowSection
title="A clear path from idea to launch"
steps={[
{ id: "discover", title: "Discover", description: "Bring context together." },
{ id: "create", title: "Create", description: "Turn decisions into visible work." },
]}
/>
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Section heading. |
description | string | — | Optional introduction. |
steps | WorkflowStep[] | — | Ordered steps with stable id, title, description, and optional detail. |
orientation | "horizontal" | "vertical" | "horizontal" | Layout preset for the step list and detail. |
className | string | — | Extra section classes. |
why it's built this way
Uses ordinary buttons to select one step and a separate detail region, rather than a custom carousel or a large timeline widget. This keeps every step discoverable, keyboard reachable, and usable without dragging or timed progression. Step content remains caller-authored, allowing product screenshots, simple text, or other local components without binding the block to a product domain.
how it moves, and when it doesn't
The active step changes without an animated slide; sequence and selection are conveyed by order, number, border, and text. This avoids implying that later steps are unavailable or that the visitor must wait for a timed transition. Reduced motion does not change the interaction or remove any content.