Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spotify-embed

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-embed

A spotify embed component

  • 1.6.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-67.14%
Maintainers
1
Weekly downloads
 
Created
Source

spotify-embed

A plug-n-play Spotify Embed Component. An easy way to use Spotify Embeds with just the resource URL/URI. You can create Embeds for albums, tracks, artists, playlists, episodes or shows.

When a logged-in Spotify user clicks the button, the music starts playing in the Spotify player. For users who are not logged in on their Spotify account, the Spotify Embed plays a 30-second long audio preview, and then the users are prompted to either login or to sign up.

Spotify Widgets Documentation

Features

  • Lightweight
  • Native URL/URI parsing
  • Configurable size (default, compact and custom)
  • Light and Dark themes

Installation

# NPM
$ npm install spotify-embed

# Yarn
$ yarn add spotify-embed

Basic Usage

import React from 'react';
import { SpotifyEmbed } from 'spotify-embed'; // import the SpotifyEmbed component

function App() {
  return (
    <>
      <SpotifyEmbed src="someTrackURL" /> {/* pass an spotify resource URL/URI */}
    </>
  );
}

export default App;

Documentation

Check out our Documentation

Leave your feedback

Donate

Please consider donating if you think spotify-embed is helpful to you or that my work is valuable. I am happy if you can buy me a coffee ❤️

bmc-button  kofi-button  paypal-button

Contributing

Read the Development Process

Keywords

FAQs

Package last updated on 21 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc