1.0.0 • Published 6 years ago
react-song-embed v1.0.0
react-song-embed 🎶
React component for Songlink embeds
Install
npm install --save react-song-embedUsage
Pass in a URL from any music service, get an all-platform music/video embed.
- Required. Pass
urlthe song URL from any major/supported music service, including a Songlink URL. - Optional. Pass
height(number in px, or string) to control height. At230px or higher, Songlink shows available video. - Optional. Pass
darkfor a dark theme.
import React from 'react'
import Embed from 'react-song-embed'
export default () => (
<Embed url="https://song.link/i/1396292353" height={52} dark />
)Looking for Apple Music embeds? Check out react-music-embed.
License
MIT © lachlanjc
1.0.0
6 years ago