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.
- Host: GitHub
- URL: https://github.com/ctjlewis/react-spotify-embed
- Owner: ctjlewis
- License: mit
- Created: 2021-08-05T22:33:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-17T20:12:11.000Z (almost 2 years ago)
- Last Synced: 2025-04-06T05:54:02.318Z (9 months ago)
- Topics: nextjs, react, spotify
- Language: TypeScript
- Homepage: https://react-spotify-embed.vercel.app
- Size: 1.96 MB
- Stars: 59
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.