2.0.4 • Published 5 years ago
the-microphone v2.0.4
the-microphone
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.