---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Using the parts

The toast, icons, default looks, label, field heights, inks, cursors, cards

- **Mount `<Toaster />` once**, in the app's root (App.tsx or the root layout, beside the screens), never per page: `toast()` shows nothing without it. `toast('Saved')` and `toast.success('Saved')` take the title alone; `toast({ title, description, action })` the whole card.
- **Icons are names.** An `icon` prop takes a pack icon name from the index's Icons (`icon="plus"`, the Tabler outline pack's own name), never an element; the type is `IconName` from `@/lib/goop/trail/glyph`. A name the theme lacks draws a neutral ring: pick the nearest it has. Where a part takes an element (a `mark`), draw a pack icon with `<Glyph icon="star" box={{ w: 14, h: 14 }} />` (`Glyph` from the same file; 12, 14 or 16 px). Icons for an order's way and stock movements: `shopping-cart`, `clock`, `truck`, `truck-return`, `package-import` (goods in), `package-export` (goods out).
- **Compose, never restyle.** A page says what each part already sets (height, padding, colours …): add no class for those. A layout of your own uses the token classes of the index only.
- **Six parts' left-out look is not `default`.** Button is `primary`, the filled accent one, and IconButton is `outline`, the framed button (`variant="primary"` is its filled accent one); neither has a `default`; CopyButton is the quiet `ghost` button at `size="sm"` (24 px); NumberRoll's `size` is the `base` type step; ToggleGroup's toggles are `soft`; a TopBarAction is `outline`. Write the prop for any other look.
- **A few words are a part's own.** IconButton `shape="pill-start"` / `"pill-end"`, the two halves of a split pill; MenuButton `shape="icon"`, the round icon-only trigger; `variant="primary"` (Button, IconButton, Link, Banner, StatusMark), in the accent; `shape="field"` (SelectTrigger, Combobox, MultiSelect, PersonSelect), the picker's field; Avatar `size="2xs"` and `"3xs"`, below `xs`; Dialog `size="full"`, the page less its gutters, and `variant="window"`, the floating window; ListGroup `variant="compact"`, the tighter bar; NumberInput `width="fixed"`, 180 px at every width; PriorityMark `label`, `true` for the level's own words; Skeleton `shape="rounded-top"`, the first row of a loading stack.
- **`label` is a part's name in words.** On about 40 parts (Field, ChoiceGroup, Stat, a BarList row, a TreeView item, StatusMark, SearchInput, Spinner, Wizard …) `label` holds the words that name it: shown where the part shows them, said to a screen reader alone where it shows none (SearchInput's, Spinner's, the dots of a PaginationEllipsis). It is the name, not a second `aria-label`: where a part takes both, `aria-label` wins.
- **A field is a step taller than a Button.** A `TextInput` is 28, 32 and 36 px (`sm`, `md`, `lg`); a Button is 24, 28 and 32 px. In one row, a field at `sm` sits level with a Button at `md`, and a field at `md` (the default) with a Button at `lg`. One field is off that step: a SelectTrigger at `sm` is 24 px, a small Button's height, for a value in a settings row or a card (at `md`, its default, it is 32 px, a TextInput's). An editable quantity in a table row is a `NumberInput` straight in its cell, its `aria-label` naming the row (`lookup.mjs part NumberInput --full` shows one).
- **Text has three inks**: `text-foreground` for what is read, `text-muted-foreground` for secondary text, `text-subtle-foreground` only for placeholders and decorative icons (too faint to read).
- **The keyboard focus ring installs itself**: nothing to call.
- **The theme sets cursors**: the hand on what you can press, the text caret in fields, not-allowed on a disabled control. Don't override them unless the element is not interactive.
- **Inside a card: `CardContent` and `CardList`.** An outline card's own words or content go in `CardContent`, its rows in `CardList` (each the theme's `Item` on an `li`): the rows run edge to edge, their words and hairlines on the card's inset, and with no rows `empty` shows the theme's Empty row. A tile's title and description go in `CardText`. Never a `div` or `ul` padded by hand inside a card. A picture beside a header's title (a progress ring, an avatar, an icon tile) goes in `CardMedia`, first in the `CardHeader`, never straight in the header.
