Now Playing
Connectors · NowPlaying
What is playing (Spotify, a speaker, a podcast app): cover, title and artist, the device, progress with times and previous / play-pause / next.
Props
NowPlaying
| Prop | Type | Notes |
|---|---|---|
title | string | Required |
artist? | string | |
album? | string | |
art? | ReactNode | Cover art: an `<img>`. |
position? | number | Position and length in seconds. |
duration? | number | |
playing? | boolean | |
device? | string | Where it plays: "Living room speaker". |
onPlayPause? | () => void | |
onNext? | () => void | |
onPrevious? | () => void | |
service? | ServiceRef | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |