Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-steps.json --yes

Steps

Pro

A strip that shows which step of a flow the user is on, for display only, for React and Tailwind CSS. Part of Goop Pro.

Move the current step, stand the steps on their side, span the edges, fail step 2 and add descriptions. Nothing is imported: the panel moves the steps.

When to use

  • A strip that shows which step of a flow the user is on, for display only.
  • Also called: stepper or progress steps.

When not to use

  • For the flow itself, with its panels and buttons, use Wizard.

Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Steps on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-steps.json --yes
PROMPT
Add the Goop Steps to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { Steps, StepsItem, StepsLabel, StepsDescription, StepsIndicator } from '@/components/ui/goop/steps';
import { Card } from '@/components/ui/goop/card';

<>
  <Steps aria-label="Import progress" value={1}>
    <StepsItem>
      <StepsLabel>Choose a file</StepsLabel>
      <StepsIndicator />
    </StepsItem>
    <StepsItem>
      <StepsLabel>Match the fields</StepsLabel>
      <StepsIndicator />
    </StepsItem>
    <StepsItem>
      <StepsLabel>Import</StepsLabel>
      <StepsIndicator />
    </StepsItem>
  </Steps>
  <Card>
    <Steps aria-label="Setup progress" orientation="vertical" value={2}>
      <StepsItem>
        <StepsLabel>Upload file</StepsLabel>
        <StepsIndicator />
      </StepsItem>
      <StepsItem invalid>
        <StepsLabel>Check dates</StepsLabel>
        <StepsIndicator />
        <StepsDescription>Two rows have no date: fix them and upload again</StepsDescription>
      </StepsItem>
      <StepsItem>
        <StepsLabel>Match columns</StepsLabel>
        <StepsIndicator />
        <StepsDescription>12 of 14 columns matched</StepsDescription>
      </StepsItem>
      <StepsItem>
        <StepsLabel>Import</StepsLabel>
        <StepsIndicator />
      </StepsItem>
    </Steps>
  </Card>
</>
  • Fits: flow: header.
  • Also known as: Stepper.
  • height, width, padding, corner, border, background, text, motion: add no class for these.

API reference

Options
OptionTypeWhat it does
completeLabel?stringWhat a reader hears after a finished step's name; completed by default.
incompleteLabel?stringWhat a reader hears after an earlier step that is not finished; not completed by default.
invalidLabel?stringWhat a reader hears after a step that holds an error; has an error by default.
value?number | string | null = 0The current step, held by the caller (a display: no handler): its index, or its StepsItem's own value; null before the flow begins.
orientation?'horizontal' | 'vertical' = 'horizontal'vertical a column of steps, each marker on its start edge and its words after it; horizontal the row.
edges?boolean = falseSpan the strip's column: the first ring on its start edge, the last on its end edge, the rest evenly between (a Wizard's).
Parts
PartWhat it is
StepsItemOne step, an li; value?: string — The step's own id, which the strip's value may name instead of an index; complete?: boolean — Whether the step is finished: false keeps an earlier step's plain ring, true checks a later one; left out, a step before the current one is finished; invalid?: boolean — The step holds an error (say why in its StepsDescription): the alert mark in the danger ink, said "has an error"
StepsLabelThe step's name, first in its StepsItem before the StepsIndicator; the current one stands out
StepsDescriptionA line or two under the step's name, after its StepsIndicator
StepsIndicatorThe step's ring, checked once done, with the line to the next step; it takes no children
  • data-slot values (to select a part by): steps, steps-description, steps-indicator, steps-item, steps-label, steps-separator

Motion

  • The part sets its own motion: add no transition or animation of your own.
  • How the theme moves, and how to move your own parts the same way: Motion.

Responsive behaviour

  • Use orientation="vertical" for a long flow down a page's side or on a phone; mark a failed step invalid, its reason in its StepsDescription; with no separate panel, put the current step's fields in its StepsItem.

Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

goop.so/themes/trail/components/steps.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-steps.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.