npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-status-mark.json --yesStatus mark
ProA small icon that shows an item's status, such as to do, in progress or done, in a list, a board or a record, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
import { StatusMark } from '@/components/ui/goop/status-mark';
<>
<h1 className="flex items-center gap-2 text-4xl font-medium">
<StatusMark status="in-progress" size="lg" />
Checkout redesign
</h1>
<StatusMark status="in-review" label />
<StatusMark status={{ name: 'Waiting on customer', icon: 'mail', variant: 'warning' }} label />
<StatusMark status="done" label="wide" />
<StatusMark status={{ name: 'Low', icon: 'alert-triangle', variant: 'warning' }} label="wide" />
</>When to use
- A small icon that shows an item's status, such as to do, in progress or done, in a list, a board or a record.
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 Status mark 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>/trail-status-mark.json --yesAdd the Goop Status mark to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { StatusMark } from '@/components/ui/goop/status-mark';
<>
<h1 className="flex items-center gap-2 text-4xl font-medium">
<StatusMark status="in-progress" size="lg" />
Checkout redesign
</h1>
<StatusMark status="in-review" label />
<StatusMark status={{ name: 'Waiting on customer', icon: 'mail', variant: 'warning' }} label />
<StatusMark status="done" label="wide" />
<StatusMark status={{ name: 'Low', icon: 'alert-triangle', variant: 'warning' }} label="wide" />
</>- Fits: board, list, record, states (their recipes).
- Also known as: StatusIcon, StatusIndicator, StatusBadge, IssueStatus, WorkflowState.
- In a Select or a Combobox, hand the mark to an option as its
mark(size="sm"). In a Badge, a Board card or a list row, the mark alone carries the status. In a table's status column,label="wide". A stock level is a team's own status per level:{ name: 'In stock', icon: 'circle-check', variant: 'success' },Lowwithalert-triangleinwarning,Out of stockwithcircle-xindestructive. - width, gap, text: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| status | 'backlog' | 'todo' | 'in-progress' | 'in-review' | 'done' | 'cancelled' | StatusCustom | The status: one of the six kinds, or a team's own. |
| variant? | StatusVariant | 'primary' | Its colour over the kind's own, by what it means (default, info, success, warning, destructive), or the accent (primary). |
| label? | boolean | 'wide' | (string & {}) | The words after the icon: true the status's own, a string your own, "wide" the status's own but the icon alone in a table cell on a phone. |
| size? | 'sm' | 'md' | 'lg' = 'md' | The icon's step: 14 px (sm, a chip), 16 px (md, a row) or 20 px (lg, beside a heading). |
- Types: StatusCustom = { name: string; icon: IconName; variant?: StatusVariant | 'primary' }
- data-slot values (to select a part by): status-mark, status-mark-icon, status-mark-label
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.