# @mantial/minting-sdk-vuejs

> Mantial - Minting SDK for VueJs

Latest version **0.0.2** (published 2022-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mantial/minting-sdk-vuejs
pnpm add @mantial/minting-sdk-vuejs
yarn add @mantial/minting-sdk-vuejs
bun add @mantial/minting-sdk-vuejs
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-04-05 |
| First published | 2022-04-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mantial |
| Maintainers | roman86, mantialdevelopers |
| Keywords | vue, vuejs, minting |

## Links

- npm: https://www.npmjs.com/package/@mantial/minting-sdk-vuejs
- npm.io page: https://npm.io/package/@mantial/minting-sdk-vuejs

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^3.2.13
- [core-js](https://npm.io/package/core-js.md) ^3.8.3

## Recent versions

- 0.0.2 (latest) — 2022-04-05
- 0.0.1 — 2022-04-04

## README

# @mantial/minting-sdk-vuejs

Source code at https://github.com/mantial/minting-sdk-vuejs

## Installation

``npm install -D @mantial/minting-sdk-vuejs``

``yarn add -D @mantial/minting-sdk-vuejs``

## Usage


### The ``@mantial/minting-sdk-vuejs`` plugin could be used like in this example:

```js
import Vue from 'vue';
import Minting from '@mantial/minting-sdk-vuejs';

const app = createApp(App)
app.use(Minting)
```


### Also use global component where you need


```vue

<template>
  <vuejs-sdk width="100%" height="500px" :config="{...}"/>
  <!--  or use number for pass size in pixels-->
  <vuejs-sdk :width="100" :height="500" :config="{...}"/>
</template>
```


### Component has props:


```
{
    //Width for iframe
    width: {
        type: [String, Number],
        required: true
    },
    //Height for iframe
    height: {
        type: [String, Number],
        required: true
    },
    //Config for iframe postMessage
     config: {
        type: Object
    }
}
```


## Mantial configuration


```ts
{
    network: 'ropsten' | 'ethereum';
    collectionSlug: string;
    amount?: number;
    showTitle?: boolean;
    amountSelector?: boolean;
    saleSelector?: boolean;
    saleId?: number;
    showDetails?: boolean;
    showErrors?: boolean;
    theme?: any; // ---> MUI v5 theme
    styles?: { // ---> allow inline styles applied as 'sx' to MUI components
        button?: any;
        mintButton?: any;
        switchNetworkButton?: any;
        container?: any;
        title?: any;
        error?: any;
        amount?: any;
        iconButton?: any;
        texts?: any;
        success?: any;
        minting?: any;
        minterContainer?: any;
        description?: any;
        installMetamaskButton?: any;
    };
    texts?: {
        title?: string;
        minting?: string;
        success?: string;
        buy?: string;
        goBack?: string;
        description?: string;
        switchNetwork?: string;
        installMetamask?: string;
    };
}
;
```

---
_Source: https://npm.io/package/@mantial/minting-sdk-vuejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
