0.0.2 • Published 4 years ago
react-custom-audio v0.0.2
react-custom-audio
Install
npm install react-custom-audio
yarn add react-custom-audio
Usage
import Audio from 'react-custom-audio';
<Audio src="audio.mp3" key="audio.mp3" />;
And import style manually:
import 'react-custom-audio/main.css';
API
Params | Desc | Types |
---|---|---|
key | The unique identifier corresponding to the playback source | String |
src | Playback source | String |
ref | Audio instance is bound to onPlay and onPause events | Ref |