# @damilaredev/vue-mono

> Vuejs package for mono integration

Latest version **0.8.0** (published 2022-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @damilaredev/vue-mono
pnpm add @damilaredev/vue-mono
yarn add @damilaredev/vue-mono
bun add @damilaredev/vue-mono
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2022-02-20 |
| First published | 2021-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Damilare Anjorin |
| Maintainers | damilaredev |
| Keywords | mono, vuejs, component, vue 3, widget |

## Links

- npm: https://www.npmjs.com/package/@damilaredev/vue-mono
- Homepage: https://github.com/dammy001/vue-mono#readme
- Issues: https://github.com/dammy001/vue-mono/issues
- npm.io page: https://npm.io/package/@damilaredev/vue-mono

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3.2.31

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.8.0 (latest) — 2022-02-20
- 0.7.0 — 2022-02-20
- 0.6.0 — 2021-12-06
- 0.2.2 — 2021-09-23
- 0.2.0 — 2021-01-29
- 0.1.0 — 2021-01-28

## README

# vue-mono

# Mono Component for Vue 3.x

A Vue 3 package for mono integration.

### Install

```
// with npm
npm i @damilaredev/vue-mono --save

//with yarn
yarn add @damilaredev/vue-mono

//with pnpm
pnpm add @damilaredev/vue-mono
```

### Usage

```
import { createApp } from 'vue';
import App from './App.vue'
import VueMono from '@damilaredev/vue-mono';

const app = createApp(App)

app.use(VueMono)

app.mount('#app')
```

###### example

```vue
<template>
 <vue-mono :publicKey="publicKey" @success="success">
  <button class="px-3 py-2 rounded text-center bg-blue-300 text-white">
   Connect With Mono
  </button>
 </vue-mono>
</template>

<script lang="ts">
 import { ref, Ref } from 'vue';
 export default defineComponent({
  setup: () => {
   const publicKey: Ref<string> = ref<string>('xxxxxxxxxxxxxxxxxxxxxxx');

   const success = (response: string): void => console.log(response);

   return { publicKey, success };
  },
 });
</script>
```

###### or referencing the component instance data

```vue
<template>
 <mono-component :publicKey="publicKey" @success="success" />
 <button
  class="px-3 py-2 rounded text-center bg-blue-300 text-white"
  @click="connect"
 >
  Connect With Mono
 </button>
</template>
<script lang="ts">
 import { ref, unref, ComponentPublicInstance, Ref } from 'vue';
 import { MonoComponent, MonoPropType } from '@damilaredev/vue-mono';
 export default defineComponent({
  setup: () => {
   const publicKey: Ref<string> = ref<string>('xxxxxxxxxxxxxxxxxxxxxxx');

   const monoRef =
    ref<ComponentPublicInstance<Record<string, unknown>, MonoPropType> | null>(
     null,
    );

   const connect = (): void => unref(monoRef)!.connectWithMono();

   const success = (response: string): void => console.log(response);

   return { publicKey, success, connect };
  },
 });
</script>
```

---
_Source: https://npm.io/package/@damilaredev/vue-mono · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
