the-microphone

Audio input of the-components


Keywords
react-component, the
License
MIT
Install
npm install the-microphone@2.0.4

Documentation

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