@micrio/client 5.3.1 → 5.3.3
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.
- package/README.md +31 -31
- package/micrio.min.d.ts +474 -260
- package/micrio.min.js +4 -4
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# Micrio Client
|
|
2
|
-
|
|
3
|
-
If you are looking for HOWTOs, tutorials, or general Micrio help, please check out our
|
|
4
|
-
searchable Knowledge Base at:
|
|
5
|
-
|
|
6
|
-
[https://doc.micr.io/](https://doc.micr.io/)
|
|
7
|
-
|
|
8
|
-
## Installation
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm i @micrio/client
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
|
|
16
|
-
Since the Micrio Client is a passive binding for all HTML `<micr-io>` elements, all you need to do to include Micrio in your project or page is:
|
|
17
|
-
|
|
18
|
-
```js
|
|
19
|
-
import '@micrio/client'
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Typed
|
|
23
|
-
|
|
24
|
-
To get typed access to a Micrio HTML element, you can use the `HTMLMicrioElement` as exported by this package:
|
|
25
|
-
|
|
26
|
-
```ts
|
|
27
|
-
import type { HTMLMicrioElement } from '@micrio/client';
|
|
28
|
-
|
|
29
|
-
// This will be a fully typed element
|
|
30
|
-
const micrioElement = document.querySelector('micr-io') as HTMLMicrioElement;
|
|
31
|
-
```
|
|
1
|
+
# Micrio Client
|
|
2
|
+
|
|
3
|
+
If you are looking for HOWTOs, tutorials, or general Micrio help, please check out our
|
|
4
|
+
searchable Knowledge Base at:
|
|
5
|
+
|
|
6
|
+
[https://doc.micr.io/](https://doc.micr.io/)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm i @micrio/client
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
Since the Micrio Client is a passive binding for all HTML `<micr-io>` elements, all you need to do to include Micrio in your project or page is:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
import '@micrio/client'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Typed
|
|
23
|
+
|
|
24
|
+
To get typed access to a Micrio HTML element, you can use the `HTMLMicrioElement` as exported by this package:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import type { HTMLMicrioElement } from '@micrio/client';
|
|
28
|
+
|
|
29
|
+
// This will be a fully typed element
|
|
30
|
+
const micrioElement = document.querySelector('micr-io') as HTMLMicrioElement;
|
|
31
|
+
```
|