---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Steps

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.

Pro. Its export: `Steps`.

## Try it

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.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-steps.json --yes
```

```text
Add the Goop Steps to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { Steps, StepsDescription, StepsIndicator, StepsItem, StepsLabel } from '@/components/ui/goop/steps';

function StudyProgress() {
  return (
    <Steps aria-label="Study progress" orientation="vertical" value={2}>
      <StepsItem>
        <StepsLabel>Plan study</StepsLabel>
        <StepsIndicator />
      </StepsItem>
      <StepsItem invalid>
        <StepsLabel>Recruit</StepsLabel>
        <StepsIndicator />
        <StepsDescription>Two people have no time yet: pick a new slot</StepsDescription>
      </StepsItem>
      <StepsItem>
        <StepsLabel>Book sessions</StepsLabel>
        <StepsIndicator />
        <StepsDescription>A room and a time for each</StepsDescription>
      </StepsItem>
      <StepsItem>
        <StepsLabel>Share findings</StepsLabel>
        <StepsIndicator />
      </StepsItem>
    </Steps>
  );
}
```

- Fits: flow: header.
- Also known as: Stepper.
- height, width, padding, corner, background, text, motion: add no class for these.

## API reference

### Options

- `completeLabel?: string` — What a reader hears after a finished step's name; `completed` by default.
- `incompleteLabel?: string` — What a reader hears after an earlier step that is not finished; `not completed` by default.
- `invalidLabel?: string` — What a reader hears after a step that holds an error; `has an error` by default.
- `value?: number | string | null = 0` — The 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 mark on its start edge and its words after it; `horizontal` the row.
- `edges?: boolean = false` — Span the strip's column: the first mark on its start edge, the last on its end edge, the rest evenly between (a Wizard's).

### Parts

- `StepsItem` — One 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 dot, `true` ticks 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 circled bang in the icon red, said "has an error"
- `StepsLabel` — The step's name, first in its StepsItem before the StepsIndicator; the current one stands out
- `StepsDescription` — A line or two under the step's name, after its StepsIndicator
- `StepsIndicator` — The step's mark, ticked once done, with the rail to the next step; it takes no children

- data-slot values (to select a part by): steps, steps-check, steps-description, steps-dot, steps-indicator, steps-item, steps-label, steps-mark, steps-separator

## Motion

- The part sets its own motion: add no transition or animation of your own.

## 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.

## Related

- [Wizard](/themes/meadow/components/wizard): A flow the user goes through one step at a time, with back and next buttons.
- [Tree view](/themes/meadow/components/tree-view): Nested rows a person opens and closes, to pick one (or several) of them.
- [Filter chips](/themes/meadow/components/filter-chips): The row of filters applied to a list, under its search field or filter controls.
- [Navigation menu](/themes/meadow/components/navigation-menu): A site's header menu.
