An open API service indexing awesome lists of open source software.

https://github.com/ctjlewis/react-spotify-embed

A simple React component for embedding a Spotify song or album preview.
https://github.com/ctjlewis/react-spotify-embed

nextjs react spotify

Last synced: 9 months ago
JSON representation

A simple React component for embedding a Spotify song or album preview.

Awesome Lists containing this project

README

          

# React Spotify Embed

[NPM](https://npmjs.com/package/react-spotify-embed) |
[Demo](https://react-spotify-embed.vercel.app)

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

Any link should work (albums, songs, etc.). All other props on the Spotify embed
widget can also be overridden (see
[here](https://developer.spotify.com/documentation/embeds/)).

```tsx
// Displaying a single track.

// Displaying an album.

// Using `wide` attribute.

```

**Demo: Normal song link, Album link, and `wide`**

### Example

This repository itself is a Next project demonstrating the use of this
component.