npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-steps.json --yesSteps
ProA strip that shows which step of a flow the user is on, for display only, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- StepsItemOne step, an
li - StepsLabelThe step's name, first in its StepsItem before the StepsIndicator
- StepsDescriptionA line or two under the step's name, after its StepsIndicator
- StepsIndicatorThe step's mark, ticked once done, with the rail to the next step
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>
);
}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.
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-steps.json --yesAdd the Goop Steps to this project. The install steps are at https://goop.so/docs/install.mdUsage
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
| Option | Type | What it does |
|---|---|---|
| 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). |
| Part | What it is |
|---|---|
| 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 stepinvalid, 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.