npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-meta-facts.json --yesMeta facts
ProA strip of a record's short facts, such as its status, owner and dates, each a label over its value, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- MetaFactsItemOne fact in the list
- MetaFactsLabelThe fact's name, plain words above its value
- MetaFactsValueThe fact's value under its label, usually one Link in its meta variant, or plain words
import { MetaFacts, MetaFactsItem, MetaFactsLabel, MetaFactsValue } from '@/components/ui/goop/meta-facts';
import { Link } from '@/components/ui/goop/link';
<MetaFacts aria-label="Note details">
<MetaFactsItem>
<MetaFactsLabel>List</MetaFactsLabel>
<MetaFactsValue>
<Link variant="meta" href="/projects/transcript-search">
Transcript search
</Link>
</MetaFactsValue>
</MetaFactsItem>
<MetaFactsItem>
<MetaFactsLabel>Owner</MetaFactsLabel>
<MetaFactsValue>
<Link variant="meta" href="/people/teodora">
Teodora Valk
</Link>
</MetaFactsValue>
</MetaFactsItem>
</MetaFacts>Show two to five facts, stack them (one a row, label beside value) or let them sit side by side and wrap; make a value long. The facts are ours.
When to use
- A strip of a record's short facts, such as its status, owner and dates, each a label over its value.
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 Meta facts 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-meta-facts.json --yesAdd the Goop Meta facts to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { MetaFacts, MetaFactsItem, MetaFactsLabel, MetaFactsValue } from '@/components/ui/goop/meta-facts';
import { Link } from '@/components/ui/goop/link';
<MetaFacts aria-label="Note details">
<MetaFactsItem>
<MetaFactsLabel>List</MetaFactsLabel>
<MetaFactsValue>
<Link variant="meta" href="/projects/transcript-search">
Transcript search
</Link>
</MetaFactsValue>
</MetaFactsItem>
<MetaFactsItem>
<MetaFactsLabel>Owner</MetaFactsLabel>
<MetaFactsValue>
<Link variant="meta" href="/people/teodora">
Teodora Valk
</Link>
</MetaFactsValue>
</MetaFactsItem>
</MetaFacts>- Fits: flow, list, record (their recipes).
- height, width, padding, gap, text: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| asChild? | boolean = false | Render the strip on the one child element instead of an aside; its children become the list's facts. |
| stack? | boolean | 'always' | Stacks the facts one a row: "always" at every width, false never; true or left out, a strip that stacks where it is under 32 rem wide. |
| Part | What it is |
|---|---|
| MetaFactsItem | One fact in the list; put a MetaFactsLabel in it, then a MetaFactsValue under it |
| MetaFactsLabel | The fact's name, plain words above its value; write it in sentence case, it is shown in capitals |
| MetaFactsValue | The fact's value under its label, usually one Link in its meta variant, or plain words |
- data-slot values (to select a part by): meta-facts, meta-facts-item, meta-facts-label, meta-facts-list, meta-facts-value
Accessibility
- hover, active, focus-visible, focus-within: the browser's own (:hover, :active, :focus-visible, :focus-within): write nothing
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.