# TrackList

> The track table of an album, a playlist or an artist's top songs: a number that turns into a play button under the pointer, the title with its artists, the album, when it was added and its length.

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

Renders the table. Its cells drop to number, title and length on a narrow container, and
the whole row plays its track when pressed anywhere outside its own links and controls.

## Examples

```tsx
<TrackList labels={labels} columns={{ album: true }}>
	<TrackList.Row index={1} title="Low Tide" duration={187} play={<TrackList.PlayButton aria-label="Play Low Tide" />} />
</TrackList>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `labels` | `Labels` |  |
| `columns?` | `Columns` |  |
| `header?` | `boolean` | Shows the heading row from the width where every column fits. @default true |
| `children` | `RemixNode` | TrackList.Row elements in playing order. |

Also accepts everything in `TagProps<"table">`.

