@micrio/client
Version:
Micrio Client image viewer
32 lines (20 loc) • 729 B
Markdown
If you are looking for HOWTOs, tutorials, or general Micrio help, please check out our
searchable Knowledge Base at:
[](https://doc.micr.io/)
```bash
npm i @micrio/client
```
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:
```js
import '@micrio/client'
```
To get typed access to a Micrio HTML element, you can use the `HTMLMicrioElement` as exported by this package:
```ts
import type { HTMLMicrioElement } from '@micrio/client';
// This will be a fully typed element
const micrioElement = document.querySelector('micr-io') as HTMLMicrioElement;
```