New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-spotify-player

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-spotify-player

Spotify player widget in React

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
159
19.55%
Maintainers
1
Weekly downloads
 
Created
Source

react-spotify-player

view on npm

Spotify player widget in React.

Installation

npm install react-spotify-player

Usage

import SpotifyPlayer from 'react-spotify-player';

// size may also be a plain string using the presets 'large' or 'compact'
const size = {
  width: '100%',
  height: 300,
};
const view = 'list'; // or 'coverart'
const theme = 'black'; // or 'white'

<SpotifyPlayer
  uri="spotify:album:1TIUsv8qmYLpBEhvmBmyBk"
  size={size}
  view={view}
  theme={theme}
/>

Read more details about the player widget at the Spotify Play Button docs.

Developing

To build and build+watch source component:

npm run build
npm run dev

To build and build+watch examples files:

npm run build:examples
npm run dev:examples

Keywords

react-component

FAQs

Package last updated on 23 Dec 2017

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