0.0.11 • Published 1 month ago
@substrate-system/input v0.0.11
input
A parent web component to inherit from.
Install
npm i -S @substrate-system/input
Modules
This exposes ESM and common JS via package.json exports
field.
ESM
import { Input } from '@substrate-system/input'
Common JS
const { Input } = require('@substrate-system/input')
Use
Inherit from this module.
JS
import { Input } from '@substrate-system/input'
class FooBar extends Input {
static tag = 'foo-bar'
}
// Use the static method `define`
FooBar.define()
document.body.innerHTML += `
<foo-bar></foo-bar>
`