@substrate-system/input 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -48,9 +48,20 @@ const { Input } = require('@substrate-system/input')
48
48
  -----------------
49
49
 
50
50
  ## Use
51
- Inherit from this module. It has some methods for common event handling.
51
+ Inherit from this module.
52
52
 
53
53
  ### JS
54
54
  ```js
55
55
  import { Input } from '@substrate-system/input'
56
+
57
+ class FooBar extends Input {
58
+ static tag = 'foo-bar'
59
+ }
60
+
61
+ // Use the static method `define`
62
+ FooBar.define()
63
+
64
+ document.body.innerHTML += `
65
+ <foo-bar></foo-bar>
66
+ `
56
67
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@substrate-system/input",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "./dist/*"