|
1 | 1 | ## Props
|
2 | 2 |
|
3 |
| -| Prop | Default | Description | |
4 |
| -| ------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | |
5 |
| -| audio | | Songs' information. Could be a single object or an array of objects | |
6 |
| -| audio.name | `"Audio name"` | Title of the song | |
7 |
| -| audio.artist | `"Audio artist"` | Artist name of the song | |
8 |
| -| audio.url | | Url of the media source to play | |
9 |
| -| audio.cover | | Url of the album cover image | |
10 |
| -| audio.lrc | | Lyrics of the song in raw LRC format | |
11 |
| -| audio.theme | | Override theme color for this song. See `theme` prop for theme color explanation | |
12 |
| -| theme | `"#ebd0c2"` | Theme color of the player that applies to progress bar, volume control bar and playlist marker. | |
13 |
| -| autoPlay | | [See `autoplay` attribute of `<audio>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-autoplay) | |
14 |
| -| volume | `0.7` | Initial volume of the player. | |
15 |
| -| initialLoop | `"all"` | Initial loop mode of the player | |
16 |
| -| initialOrder | `"list"` | Initial playlist order of the player | |
17 |
| -| listMaxHeight | `250` | Playerlist max height | |
| 3 | +| Prop | Default | Description | |
| 4 | +| ----------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | |
| 5 | +| audio | | Songs' information. Could be a single object or an array of objects | |
| 6 | +| audio.name | `"Audio name"` | Title of the song | |
| 7 | +| audio.artist | `"Audio artist"` | Artist name of the song. Either a string or be an object containing artist's name and homepage URL. | |
| 8 | +| audio.artist.name | `"Audio artist"` | Artist name of the song. | |
| 9 | +| audio.artist.url | | Artist homepage URL. If specified, artist name displayed on the player will be a link to that URL. | |
| 10 | +| audio.url | | Url of the media source to play | |
| 11 | +| audio.cover | | Url of the album cover image | |
| 12 | +| audio.lrc | | Lyrics of the song in raw LRC format | |
| 13 | +| audio.theme | | Override theme color for this song. See `theme` prop for theme color explanation | |
| 14 | +| theme | `"#ebd0c2"` | Theme color of the player that applies to progress bar, volume control bar and playlist marker. | |
| 15 | +| autoPlay | | [See `autoplay` attribute of `<audio>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-autoplay) | |
| 16 | +| volume | `0.7` | Initial volume of the player. | |
| 17 | +| initialLoop | `"all"` | Initial loop mode of the player | |
| 18 | +| initialOrder | `"list"` | Initial playlist order of the player | |
| 19 | +| listMaxHeight | `250` | Playerlist max height | |
0 commit comments