wc-mic-input

1.0.2 • Public • Published

wc-mic-input

NPM

Published on webcomponents.org

Speech recognition input web component.

Install

$ npm install wc-mic-input

Syntax

<script src="mic-input.js"></script>

<form action="#" method="POST">
    <label for="mic-input">Enter something:</label>
    <mic-input height="36"></mic-input>
    <input type="submit" value="submit" />
</form>

Demo page

The demo page: https://yishiashia.github.io/mic-input.html

Usage

If you want to customize this web component, you can import the library and implement your new class by extend MicInput.

import MicInput from "wc-mic-input";

class customizedMicInput extends MicInput {
    // override here
}

Options

name (optional)

The name of input, it would be the POST parameter name.

height (optional)

The height of input field.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    1

Package Sidebar

Install

npm i wc-mic-input

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

337 kB

Total Files

4

Last publish

Collaborators

  • yishiashia