PixelDosa UI

Workflow Section

Explain a process with selectable steps and a matching detail panel.

A clear path from idea to launch

Show the important steps without making visitors guess what comes next.

Step 1

Discover

Bring the right context and people together.

Start with a shared brief and an agreed outcome.

Installation

bash
npx shadcn@latest add @pixeldosa/workflow-section

Requires `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.

Usage

<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." },
  ]}
/>

Props

PropTypeDefaultDescription
titlestring—Section heading.
descriptionstring—Optional introduction.
stepsWorkflowStep[]—Ordered steps with stable id, title, description, and optional detail.
orientation"horizontal" | "vertical""horizontal"Layout preset for the step list and detail.
classNamestring—Extra section classes.

why it's built this way

Engineering Notes

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

Motion Notes

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.