1.0.8 • Published 4 years ago

@iyaroslav/youtube-settings-button v1.0.8

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

youtube-settings-button

YouTube like setting button

Made with create-react-library

NPM JavaScript Style Guide

Attention! This widget is under construction. Do not use it in your projects.

Install

yarn add @iyaroslav/youtube-settings-button
# or
npm install --save @iyaroslav/youtube-settings-button

Usage

import React, { Component } from 'react'

import Setting from '@iyaroslav/youtube-settings-button'
import '@iyaroslav/youtube-settings-button/dist/index.css'

class Example extends Component {
  const [config, setConfig] = useState({
    autoplay: true,
    annotations: false,
    playbackSpeed: [
      'Normal',
      ['0.5', '0.75', 'Normal', '1.25', '1.5']
    ]
  })

  render() {
    return <Settings
      hd
      settings={config}
      onChange={setConfig}
    />
  }
}

TODO

  • Switches
  • Animations
  • Move menu to external component
  • Animated switches
  • Size calculation
  • Other action in menu

License

MIT © iYaroslav

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago