react-bandcamp
v1.1.5
Published
A react component to include an embedded player from Bandcamp
Readme
React Bandcamp Player
This component provides a simple way to add an embedded Bandcamp player to your project.
Usage
import BandcampPlayer from 'react-bandcamp'
...
render() {
<BandcampPlayer album="xxxxx" />
}Properties
album (required)The ID of the album to embed.titleThe title attribute of the<iframe>. Must be unique in DOM. DefaultBandcamp playersizeEithersmallorlarge. Default:large.bgcolThe hexcode of the background colour. Default:ffffff.linkcolThe hexcode of the link text colour. Default:0687f5,merchID of merch to link to. Ignored ifsizeis notlarge. Default:nulltracklistWhether to show tracklist under the player. Default:trueartworkSize of artwork to show.bigorsmall. Defaultbig.widthCSS width for player iframe. Is passed directly tostyleattribute so can be pixel size, percentage,autoetc. Default:autoheightCSS height for player iframe. Is passed directly tostyleattribute so can be pixel size, percentage,autoetc. Default:auto
IDs for albums / merch can be found by going to album on Bandcamp (e.g.
https://invinciblepigs.bandcamp.com/album/the-garden-folke) and clicking the share / embed link under the album art, and examining the embed code.
