UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

18 lines (17 loc) 720 B
import { default as React, FunctionComponent, SyntheticEvent } from 'react'; import { BasicComponent } from '../../utils/typings'; export interface AudioProps extends BasicComponent { src: string; muted: boolean; autoPlay: boolean; loop: boolean; preload: string; type: string; onBack: (e: HTMLAudioElement) => void; onForward: (e: HTMLAudioElement) => void; onPause: (e: SyntheticEvent<HTMLAudioElement>) => void; onEnd: (e: SyntheticEvent<HTMLAudioElement>) => void; onMute: (e: HTMLAudioElement) => void; onCanPlay: (e: SyntheticEvent<HTMLAudioElement>) => void; } export declare const Audio: FunctionComponent<Partial<AudioProps> & React.HTMLAttributes<HTMLElement>>;