npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-icon-tile.json --yesIcon tile
ProA small square holding one icon that marks what a row, a card or a step is about, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- IconTileIconThe single icon inside an IconTile
import { IconTile, IconTileIcon } from '@/components/ui/goop/icon-tile';
function RecordStep() {
return (
<IconTile className="bg-orange-fill">
<IconTileIcon icon="tabler-outline:sparkle-2" />
</IconTile>
);
}Switch the look, the size and the icon: the tile beside its words follows, light and dark. Nothing is fake.
When to use
- A small square holding one icon that marks what a row, a card or a step is about.
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 Icon tile 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-icon-tile.json --yesAdd the Goop Icon tile to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { IconTile, IconTileIcon } from '@/components/ui/goop/icon-tile';
function RecordStep() {
return (
<IconTile className="bg-orange-fill">
<IconTileIcon icon="tabler-outline:sparkle-2" />
</IconTile>
);
}- Fits: flow, states (their recipes).
- height, width, corner, background, shadow, text, motion: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| variant | default | surface | subtle = default | |
| size | sm | md = md | |
| asChild? | boolean = false | Render the tile's look on the one child element instead of a div (a link to the subject, a picker's button). |
| Part | What it is |
|---|---|
| IconTileIcon | The single icon inside an IconTile; with asChild it dresses your own icon element instead; takes asChild; icon?: IconName — A pack icon name; left out with asChild, where your own element is the icon |
- Class recipes (cva): iconTileVariants (IconTile)
- data-slot values (to select a part by): icon-tile, icon-tile-icon
Accessibility
- hover, active: the browser's own (:hover, :active): write nothing
Its states are drawn from attributes and props, so assistive technology and your agent read the same thing:
| State | Drawn by |
|---|---|
| focus-visible | the attribute data-focus-visible |
Motion
- The part sets its own motion: add no transition or animation of your own.
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.