1.1.1 • Published 4 years ago
audio-self-my v1.1.1
laputa-renderer
习题渲染器(可提交答案)
安装
npm
npm i -d audio-self
使用
import React from 'react'; import Renderer from 'audio-self';
const App: React.SFC<{}> = () => (
API
参数 | 说明 | 类型 | 参数必填 |
---|---|---|---|
audioURL | 音频文件 | String | 必填 |
playIcon | 播放按钮样式自定义 | String | 非必填 |
pauseIcon | 暂停按钮样式自定义 | String | 非必填 |
mutedIcon | 禁音按钮样式自定义 | String | 非必填 |
soundedIcon | 打开音量按钮样式自定义 | String | 非必填 |