1.0.4 • Published 6 years ago

react-spotify-player v1.0.4

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

react-spotify-player

view on npm

Spotify player widget in React.

npm.io

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
1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago