npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

react-song-embed

1.0.0 • Public • Published

react-song-embed 🎶

React component for Songlink embeds

npm

View demo

Install

npm install --save react-song-embed

Usage

Pass in a URL from any music service, get an all-platform music/video embed.

  • Required. Pass url the song URL from any major/supported music service, including a Songlink URL.
  • Optional. Pass height (number in px, or string) to control height. At 230px or higher, Songlink shows available video.
  • Optional. Pass dark for 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

Keywords

none

install

npm i react-song-embed

Downloadsweekly downloads

4

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability