A parent web component to inherit from.
npm i -S @substrate-system/input
This exposes ESM and common JS via package.json exports
field.
import { Input } from '@substrate-system/input'
const { Input } = require('@substrate-system/input')
Inherit from this module.
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>
`