mycelium-music-modal
v0.1.70
Published
The package is using SoundCloud Widget API
Downloads
10
Readme
Mycelium - Music Modal
Music modal for Mycelium Swaps Project
Installation
Install my-project with npm
npm install mycelium-music-modal
or
yarn add mycelium-music-modal
Usage/Examples
import React, { useContext } from "react";
import { MusicPlayerContext, MusicPlayerProvider } from "mycelium-music-modal";
function Component() {
const { togglePlayer } = useContext(MusicPlayerContext);
return (
<button onClick={togglePlayer}>Open Music Modal</button>
)
}
function App() {
return (
<MusicPlayerProvider>
<Component />
</MusicPlayerProvider>
)
}