npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-priority-mark.json --yesPriority mark
ProA small icon that shows an item's priority, from none to urgent, in a list, a board or a record, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
import { PriorityMark } from '@/components/ui/goop/priority-mark';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/goop/select';
import { StatusMark } from '@/components/ui/goop/status-mark';
function SurveyTask() {
return (
<div className="flex flex-col gap-2 text-base">
<span className="flex items-center gap-2">
<PriorityMark priority="urgent" />
<StatusMark status="in-progress" />
Soil samples to the lab
</span>
<Select defaultValue="high">
<SelectTrigger aria-label="Priority">
<SelectValue />
</SelectTrigger>
<SelectContent>
{(['urgent', 'high', 'medium', 'low', 'none'] as const).map((level) => (
<SelectItem key={level} value={level} mark={<PriorityMark priority={level} size="sm" />}>
{level === 'none' ? 'No priority' : level[0]?.toUpperCase() + level.slice(1)}
</SelectItem>
))}
</SelectContent>
</Select>
</div>
);
}When to use
- A small icon that shows an item's priority, from none to urgent, in a list, a board or a record.
When not to use
- To change it use Select.
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 Priority 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>/meadow-priority-mark.json --yesAdd the Goop Priority mark to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { PriorityMark } from '@/components/ui/goop/priority-mark';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/goop/select';
import { StatusMark } from '@/components/ui/goop/status-mark';
function SurveyTask() {
return (
<div className="flex flex-col gap-2 text-base">
<span className="flex items-center gap-2">
<PriorityMark priority="urgent" />
<StatusMark status="in-progress" />
Soil samples to the lab
</span>
<Select defaultValue="high">
<SelectTrigger aria-label="Priority">
<SelectValue />
</SelectTrigger>
<SelectContent>
{(['urgent', 'high', 'medium', 'low', 'none'] as const).map((level) => (
<SelectItem key={level} value={level} mark={<PriorityMark priority={level} size="sm" />}>
{level === 'none' ? 'No priority' : level[0]?.toUpperCase() + level.slice(1)}
</SelectItem>
))}
</SelectContent>
</Select>
</div>
);
}- Also known as: PriorityIcon, PriorityIndicator, PriorityBadge, PriorityBars, IssuePriority.
- In a Select or a Combobox, hand the mark to an option as its
mark(size="sm"), the option's own words beside it. In a list row or a Board card, the mark alone carries the priority: its name says it. - height, width, gap, text: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| priority | 'none' | 'urgent' | 'high' | 'medium' | 'low' | The priority. |
| label? | boolean | string | The words after the icon: true the level's own, a string your own. |
| 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). |
- data-slot values (to select a part by): priority-mark, priority-mark-icon, priority-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.