# IconTile

Tinted square surface for icons with an optional corner badge

> Component ID: `icon-tile`
> Import: `import { IconTile } from '@slipstream-ui/core'`
> Docs: https://slipstreamui.com/docs/components/icon-tile
> Registry: https://slipstreamui.com/registry/icon-tile.json
> Tier: atom · Package: @slipstream-ui/core@0.16.0
> Manifest schema: v1 · manifest: v1

## Design intent

IconTile gives feature bullets, status markers and accent icons a consistent tinted container. Tones follow the Alert convention (ink text on a tint) so contrast is pre-audited, and sizes stay on the spacing scale.

## Props

| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| tone | `'default' | 'primary' | 'success' | 'warning' | 'info' | 'destructive'` | `default` | no | Tint and ink pairing; destructive uses text-destructive per the Alert convention |
| size | `'sm' | 'md' | 'lg'` | `md` | no | Tile edge length: sm h-8, md h-10, lg h-12 with proportional icon sizing |
| badge | `ReactNode` | — | no | Count or status marker pinned to the tile's top-right corner |
| className | `string` | — | no | Additional CSS classes to apply |

## Examples

### Feature bullet

Tinted accent next to a feature title

```tsx
<IconTile tone="primary"><ZapIcon /></IconTile>
```

### Badge count

Corner marker for unread counts or status dots

```tsx
<IconTile tone="info" badge={3}><BellIcon /></IconTile>
```

## Anti-patterns

- **Don't put interactive content inside** — IconTile is a presentational span. Interactive tiles belong in a Button or link.

## Accessibility

- **Decorative surface**: Plain span with no role; meaning comes from adjacent text or an Icon label
- **Contrast**: Tone pairs reuse the audited Alert tint/ink tokens

## Composition

- Compose with **Icon** — Icon inside IconTile inherits the tile svg sizing; pass tone only when overriding
  
  ```tsx
  <IconTile tone="success"><Icon icon={CheckIcon}/></IconTile>
  ```
- Compose with **FeatureRow** — IconTile pairs with feature rows for consistent marketing grids
  
  ```tsx
  <FeatureRow icon={<IconTile tone="primary"><ZapIcon/></IconTile>} title="Fast"/>
  ```
- Related: Icon, IconButton, FeatureRow

