All Projects → alexanderwallin → react-spotify-player

alexanderwallin / react-spotify-player

Licence: other
Spotify player widget in React

Programming Languages

javascript
184084 projects - #8 most used programming language

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].