Tracklist
Hi-fi record sleeve tracklist designed to drive AudioPlayer with active row highlighting and live Equalizer indicators.
Interactive Tracklist
Click any row to switch the active track or toggle playback with a live Equalizer indicator.
tracklist-example.tsx
Side A — Tracklist4 Tracks
Quick Import
Example.tsxtsx
1import { Tracklist } from "@rekodo/react";2
3export function Example({ tracks, activeTrackId, onSelectTrack }) {4 return (5 <Tracklist6 tracks={tracks}7 activeTrackId={activeTrackId}8 isPlaying9 onSelectTrack={onSelectTrack}10 />11 );12}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| tracks | TracklistItem[] | required | Array of track objects (id, title, artist, duration, cover?, format?). |
| activeTrackId | string | undefined | Highlights the currently selected track. |
| isPlaying | boolean | false | Replaces the active track number with a live Equalizer. |
| onSelectTrack | (track, index) => void | undefined | Callback when a track row is clicked. |
| title | string | "Side A — Tracklist" | Monospace header strip title. |
| showCover / showFormat | boolean | true | Toggle thumbnail artwork and audio format pills. |