0.1.7 • Published 6 years ago

react-spotify-widgets v0.1.7

Weekly downloads
7
License
ISC
Repository
github
Last release
6 years ago

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

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago