# MediaTile

> An album, a playlist or an artist in a music library as one tile: square artwork (round for a person), its name and a line under it, and a play button that rises over the art under the pointer.

```ts
import { MediaTile } from "@sdxc/ui/audio";
```

Renders the tile, filling its column. The art lifts slightly under the pointer and holds
still under reduced motion; the play control appears where a pointer can reach it.

## Examples

```tsx
<MediaTile href="/album/tidelight" title="Tidelight" subtitle="2025 · Album" art={<img src={cover} alt="" />} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `href` | `string` |  |
| `title` | `string` | The name, the link's accessible name and the tile's first line. |
| `art` | `RemixNode` | The artwork, drawn edge to edge: an `<img>` or an `<svg>`. |
| `subtitle?` | `RemixNode` | The line under the name, such as "Album · Lumen Harbor" or "Artist". |
| `shape?` | `"square" \| "round"` |  |
| `play?` | `RemixNode` | A play control over the art's corner, outside the link: a button, or a form holding one. It shows under the pointer and on focus; touch screens reach it through the page. |

Also accepts everything in `Omit<TagProps<"div">, "title" | "children">`.


## Types

| Name | Values | What it decides |
| --- | --- | --- |
| `Shape` | `"square" \| "round"` | `square` for an album or a playlist, `round` for an artist. |
