---
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/"
---

# Icon tile

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.

Pro. Its export: `IconTile`.

## Try it

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.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-icon-tile.json --yes
```

```text
Add the Goop Icon tile to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { IconTile, IconTileIcon } from '@/components/ui/goop/icon-tile';

<IconTile>
  <IconTileIcon icon="inbox" />
</IconTile>
```

- Fits: states (its recipe).
- height, width, padding, corner, border, background, text, motion: add no class for these.

## API reference

### Options

- `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

- `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.

## 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.

## Related

- [Media frame](/themes/trail/components/media-frame): A box for a photo, a map, a cover or an upload, at a fixed shape.
- [Carousel](/themes/trail/components/carousel): A strip of pictures that scroll sideways, two in view, with previous and next buttons, for a gallery or a product's photos.
- [Meta facts](/themes/trail/components/meta-facts): A strip of a record's short facts, such as its status, owner and dates, each a label over its value.
- [Feature grid](/themes/trail/components/feature-grid): A grid of feature cells, each an icon, a title and a line, for a marketing or a pricing page that lists what a product does.
