Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-inline-code.json --yes
Inline code
Pro
A word or short phrase of code inside running text (a template word, a key, a path), in a small grey chip in the theme's mono, for React and Tailwind CSS. Part of Goop Pro.
import{ InlineCode }from'@/components/ui/goop/inline-code';function SubjectHint(){return(<p className="text-lg text-foreground">
Type <InlineCode>{'{{guest}}'}</InlineCode> in the subject to add each guest’s name.
</p>);}
Type your own code into the line and make it long enough to wrap. Nothing runs: it is words in a sentence.
When to use
A word or short phrase of code inside running text (a template word, a key, a path), in a small grey chip in the theme's mono.
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 Inline code 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.
Add the Goop Inline code to this project. The install steps are at https://goop.so/docs/install.md
Usage
TSX
import{ InlineCode }from'@/components/ui/goop/inline-code';function SubjectHint(){return(<p className="text-lg text-foreground">
Type <InlineCode>{'{{guest}}'}</InlineCode> in the subject to add each guest’s name.
</p>);}
Fits: chat, record: body.
width, padding, corner, background, text: add no class for these.
API reference
Options
Option
Type
What it does
asChild?
boolean = false
Render the chip's look on the one child element instead of a code.
data-slot values (to select a part by): inline-code
Accessibility
hover, focus-visible: the browser's own (:hover, :focus-visible): 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.
goop.so/themes/meadow/components/inline-code.md · the page as Markdown