1.0.3 • Published 10 years ago
react-soundcloud-embed v1.0.3
React Soundcloud
Embed Soundcloud widget.


Installation
npm install react-soundcloud
Usage
var ReactSoundcloud = require('react-soundcloud-embed');
or
import ReactSoundcloud from 'react-soundcloud-embed';
Simple usage:
React.render(<ReactSoundcloud url="https://soundcloud.com/icebound/dusty-breaks-at-the-bottom-of-the-random-crates"/>, document.getElementById('ReactSoundcloud'));Props
width(String) - widget width, default:100%height(String) - widget height, default:450pxurl(String) - URL to track, default:https://api.soundcloud.com/tracks/210785280,autoPlay(Boolean) - auto play track, default:false,hideRelated(Boolean) - hide related, default:false,showComments(Boolean) - show comments, default:true,showUser(Boolean) - show users, default:true,showReposts(Boolean) - show reposts, default:false,visual(Boolean) -truefor background image, default:true,color(String) - play button color, default:ff5500
TODO
- Example page