wc-mac-input
Mac address input web component.
Install
$ npm install wc-mac-input
Syntax
<script src="mac-input.js"></script>
<form action="#" method="POST" onsubmit="return form_submit(event)">
<label for="mac-input">Mac address:</label>
<mac-input id="mac-input" name="mac"></mac-input>
<input type="submit" value="submit" />
</form>
Demo page
The demo page: https://yishiashia.github.io/mac-input.html
Usage
If you want to customize this web component, you can import the library and
implement your new class by extend MacInput
.
import MacInput from "wc-mac-input";
class customizedMacInput extends MacInput {
}