Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-icon-tile.json --yes
Icon tile
Pro
A small square holding one icon that marks what a row, a card or a setting is about, tinted for a status, for React and Tailwind CSS. Part of Goop Pro.
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 setting is about, tinted for a status.
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.
height, width, padding, corner, border, background, text, motion: add no class for these.
API reference
Options
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).
Parts
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, focus-visible, focus-within: the browser's own (:hover, :active, :focus-visible, :focus-within): write nothing
Motion
The part sets its own motion: add no transition or animation of your own.
How the theme moves, and how to move your own parts the same way: Motion.
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/icon-tile.md · the page as Markdown