the-microphone

2.0.4 • Public • Published

the-microphone

Build Status npm Version JS Standard

Audio input of the-components

Installation

$ npm install the-microphone --save

Usage

'use strict'
 
import React from 'react'
import { TheMicrophone, TheMicrophoneStyle } from 'the-microphone'
import { TheIconStyle } from 'the-icon'
 
class ExampleComponent extends React.Component {
  constructor (props) {
    super(props)
    this.micRef = React.createRef()
    this.state = {running: false}
  }
 
  render () {
    return (
      <div>
        <TheMicrophoneStyle/>
        <TheIconStyle/>
        <TheMicrophone onClick={() => this.setState({running: !this.state.running})}
                       running={this.state.running}
                       ref={this.micRef}
        />
      </div>
 
    )
  }
 
  componentDidMount () {
  }
}
 
export default ExampleComponent
 

Components

TheMicrophone

Audio input of the-components

Props

Name Type Description Default
height union Height of mic 92
running bool Running or not false
width union Width of mic 92

TheMicrophoneStyle

Style for TheMicrophone

Props

Name Type Description Default
options object Style options {}

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-microphone

Weekly Downloads

1

Version

2.0.4

License

MIT

Unpacked Size

3.63 MB

Total Files

32

Last publish

Collaborators

  • okunishinishi