0.1.7 • Published 6 years ago
react-spotify-widgets v0.1.7
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>
);
}
}