Playlist
A playlist with a now-playing header, drag and keyboard reordering, shuffle and repeat, an equaliser on the current track and a hook to drive real audio.
Preview
Kiln Room
Ilse Brandt
1:14
4:14
Sunday, slow6 tracks · 22:56
- 13:48
- 23:16
- 4:14
- 43:01
- 55:12
- 63:25
Drag to reorder · Alt + ↑↓ moves the focused track · Enter plays
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tracks | PlaylistTrack[] | — | Initial list: { id, title, artist, duration (s), art? }. Order is kept internally. |
| title | string | "Playlist" | List header and accessible name. |
| onReorder | (tracks) => void | — | Called with the new order after a drag or Alt+arrow move. |
| onTrackChange | (track, playing) => void | — | Called when the current track or play state changes, to drive real audio. |
| defaultCurrent | string | first track | Track id to start on. |
| defaultTime | number | 0 | Seconds into the current track. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
