Change the words, disable it with its field; press the words and the focus goes into the field. Nothing is saved: the field keeps what you type until Reset.
When to use
The words that name one form control, tied to it so a press on them focuses it.
Also called: form label.
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 Label 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-label
PROMPT
Add the Goop Label to this project. The install steps are at https://goop.so/docs/install.md
Dims the words to half, as the field dims its words when disabled; the control is disabled by its caller.
htmlFor?
string
Class recipes (cva): labelVariants
data-slot values (to select a part by): 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.
goop.so/themes/trail/components/label.md · the page as Markdown