vue-metamask-tip
0.1.0 • Public • Published vue-metamask-tip
This is a simple port from https://github.com/MetaMask/TipButton, you can use metamask tip button without any css selector like official.
Install
npm install vue-metamask-tip --save
Usage
in main.js
import Vue from 'vue';
import MetamaskTipButton from 'vue-metamask-tip';
import App from './App.vue';
import 'vue-metamask-tip/dist/vue-metamask-tip.css';
new Vue({
el: '#app',
components: {
MetamaskTipButton
},
render: h => h(App),
});
in index.vue
<template>
<div>
<MetamaskTipButton
address="0x32Be343B94f860124dC4fEe278FDCBD38C102D88"
amount="1"
type="1"
></MetamaskTipButton>
</div>
</template>
Props
Name |
Type |
Default |
Description |
amount |
String |
|
ETH amount, use string to prevent float precision issue |
address |
String |
|
Receiver ETH wallet |
type |
String |
1 |
MetaMask button type |
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.1.0 | 1 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
0.1.0 | 1 | |
Package Sidebar
Install
Weekly Downloads