This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

react-spotify-widgets

0.1.7 • Public • Published

react-spotify-widgets

React components for Spotify widgets

Installation:

npm install react-spotify-widgets

Props for play widget: width, height, uri, lightTheme, showCoverArt

Example:

import React, { Component } from 'react';
import PlayWidget from 'react-spotify-widgets';

class App extends Component {
  render() {
    return (
      <div className='App'>
        <PlayWidget
          width={300}
          height={380}
          uri={'spotify:album:6fyR4wBPwLHKcRtxgd4sGh'}
          lightTheme={true}
        />
        <PlayWidget
          width={300}
          height={380}
          uri={'spotify:album:6fyR4wBPwLHKcRtxgd4sGh'}
        />
        <PlayWidget
          width={400}
          height={500}
          uri={'spotify:album:6fyR4wBPwLHKcRtxgd4sGh'}
          viewCoverArt={true}
        />
        <PlayWidget
          width={300}
          height={80}
          uri={'spotify:album:6fyR4wBPwLHKcRtxgd4sGh'}/>
      </div>
    );
  }
}

Example

Readme

Keywords

none

Package Sidebar

Install

npm i react-spotify-widgets

Weekly Downloads

1

Version

0.1.7

License

ISC

Last publish

Collaborators

  • benwu