1.1.1 • Published 2 years ago

spotify-embed-react v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Spotify Embed React

NPM

Currently working in React

Use this component to create a Spotify embed for a given Spotify link. In Spotify, click ••• > Copy Link, and paste it in the <Spotify url={...}> prop.

Any link should work (albums, songs, playlist, podcast episode etc.).

alternateTheme: will display the alternate theme (specify true) as given in the example below height: you can specify height as a string | compact(152) as given in the example below width: you can specify width as a string | wide(100%) | compact(40%) as given in the example below borderRadius: you can specify border radius as a string(eg. 20px)

import {Spotify} from 'spotify-embed-react';
// Displaying a playlist.
<Spotify url={"https://open.spotify.com/playlist/4bnhYSeIKgBlCVLtUbafYQ"} alternateTheme='true' height="520" width="1000px | wide | compact"  key={""} />

// Displaying an album.
<Spotify url="https://open.spotify.com/album/1xa8z4YzzzSY9cewekGxPa?si=zllAa75zRfudB_4PjNLeKA" />

Demo: Normal playlist/song/album link, and with alternate theme

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago