Theme
Install with your agentnpx shadcn@4.23.1 add @goop/trail-spinner

Spinner

Free

A sign that work is under way and its end is unknown, inside a button or a loading view, for React and Tailwind CSS. Free, MIT.

Switch the size, rename what a screen reader hears, and set it before a line of words or in a busy button, outline or filled; with reduced motion asked for it stands still. Nothing is loading.

When to use

  • A sign that work is under way and its end is unknown, inside a button or a loading view.
  • Also called: loader or loading indicator.

When not to use

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 Spinner on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing.

Terminal
npx shadcn@4.23.1 add @goop/trail-spinner
PROMPT
Add the Goop Spinner to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { Spinner } from '@/components/ui/goop/spinner';

<div className="flex items-center gap-2 text-sm text-muted-foreground">
  <Spinner size="sm" aria-hidden />
  Syncing the field notes…
</div>
  • Fits: settings, flow: field.
  • height, width, motion: add no class for these.

API reference

Options
OptionTypeWhat it does
sizesm | md = md
label?string = 'Loading'What a reader hears while the work runs; a caller's aria-label wins over it.
  • data-slot values (to select a part by): spinner, spinner-icon

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.

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/spinner.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add @goop/trail-spinner

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.