mx-player
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

mx-player

A simple lovely player.

NPM JavaScript Style Guide

Install

npm install --save mx-player
# or 
yarn add mx-player

Demo

Live Demo

Usage

import 'mx-player/dist/index.css'
import { Player } from 'mx-player'
 
const App = () => {
  return <Player src={src} />
}

Interface

interface PlayerProps {
  maxHeight?: number
  maxWidth?: number
  src: string
  height?: number
  width?: number
}
export declare const Player: React.FC<
  PlayerProps &
    Omit<
      React.DetailedHTMLProps<
        React.VideoHTMLAttributes<HTMLVideoElement>,
        HTMLVideoElement
      >,
      'height' | 'width'
    >
>

License

MIT © Innei

Readme

Keywords

none

Package Sidebar

Install

npm i mx-player

Weekly Downloads

10

Version

0.4.0

License

MIT

Unpacked Size

8.13 MB

Total Files

18

Last publish

Collaborators

  • innei