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

Progress

Pro

A bar that fills as work goes on, for an upload or a setup with a known end, or that sweeps while the end is unknown, for React and Tailwind CSS. Part of Goop Pro.

Set the value (or leave it unknown and watch the segment sweep) and the most the bar is full at, put a caption and the value text over it; start a fake import of thirty files: it sweeps while it counts them, then fills. The import is a row of timers, all cleared when the example goes.

When to use

  • A bar that fills as work goes on, for an upload or a setup with a known end, or that sweeps while the end is unknown.
  • Also called: progress bar.

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 Progress 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>/meadow-progress.json --yes
PROMPT
Add the Goop Progress to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { ProgressIndicator } from '@/components/ui/goop/progress';

import { Progress } from '@/components/ui/goop/progress';

function ImportBar({ done = 12, total = 30 }: { done?: number; total?: number | null }) {
  return (
    <div className="flex w-full flex-col gap-1.5">
      <div className="flex items-baseline justify-between gap-2">
        <span id="import-caption" className="text-lg leading-5 text-foreground">
          Importing field notes
        </span>
        {total === null ? null : (
          <span className="text-sm leading-4 text-muted-foreground tabular-nums">
            {done} of {total}
          </span>
        )}
      </div>
      <Progress
        value={total === null ? null : done}
        max={total ?? 100}
        aria-labelledby="import-caption"
        {...(total === null ? {} : { 'aria-valuetext': `${done} of ${total} files` })}
      />
    </div>
  );
}
  • Fits: overview (its recipe); flow, settings: body.
  • height, width, corner, background, motion: add no class for these.

API reference

Options
OptionTypeWhat it does
value?number | nullHow far the work has gone, from 0 to max; below 0 draws 0, above max draws max, NaN draws 0.
max?number = 100The value at which the bar is full; one that is 0, negative or not finite reads as 100.
variant?'default' | 'contrast' = 'default'The fill's ink: default the firm grey (the light ink in dark); contrast the page's ink, near-black in light and near-white in dark, for a bar that stands out.
aria-label?stringThe bar's name, said by a reader ("Uploading files"); or name it with aria-labelledby.
aria-labelledby?stringThe id of the element whose words name the bar (a caption beside it).
aria-hidden?true | 'true'Hides the bar from readers, where words beside it already say how far the work has gone.
role?'meter'A meter that wears the bar passes role="meter" and names it itself.
Parts
PartWhat it is
ProgressIndicatorThe fill of a Progress
  • data-slot values (to select a part by): progress, progress-indicator

Motion

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

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/meadow/components/progress.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-progress.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.