wallet-connect-button-vue
v1.0.14
Published
A Vue 3 component for NL Wallet integration
Maintainers
Readme
wallet-connect-button-vue
A Vue 3 component for NL Wallet integration.
Installation
npm install wallet-connect-button-vueUsage
- Import the component in your Vue app:
import { WalletConnectButton } from 'wallet-connect-button-vue';- Use the component in your template:
<template>
<WalletConnectButton
:client-id="'your-client-id'"
:api-key="'your-api-key'"
:wallet-connect-host="'https://wallet-connect.eu'"
:label="'Connect Wallet'"
@success="onWalletSuccess" />
</template>- Handle the success event in your component:
<script setup>
const onWalletSuccess = (attributes: any) => {
console.log('Wallet connected successfully:', attributes);
}
</script>API
Props
clientId: string- Required. Your client ID for wallet connectionapiKey?: string- Optional. API key for authenticationwalletConnectHost?: string- Optional. Custom wallet connect host URL (defaults to https://wallet-connect.eu)label?: string- Optional. Custom button text (defaults to 'Inloggen met NL Wallet')lang?: string- Optional. Language setting for the wallet button (defaults to 'nl')
Events
success- Emitted when wallet connection succeeds
For further explanation and documentation, visit: https://wallet-connect.eu
