@vue-dapp/modal

Empower dapp developers with Vue integration for crypto wallets
2,213 207
Install
npm install @vue-dapp/modal
Latest Version:1.5.9
Vue:3
License:MIT
Last Updated:Oct 20, 2025
Links: GitHub  ·  npm
Maintainer: chnejohnson

@vue-dapp/modal

Use it first, then remove it later as you wish to customize your modal.

Get started

::code-group

pnpm add pinia @vue-dapp/core @vue-dapp/modal
pnpm add pinia @pinia/nuxt @vue-dapp/core @vue-dapp/nuxt @vue-dapp/modal
import { BrowserWalletConnector } from '@vue-dapp/core'
import { VueDappModal, useVueDappModal } from '@vue-dapp/modal'
import '@vue-dapp/modal/dist/style.css' // must add

const { open } = useVueDappModal()
<VueDappModal
	dark
	v-model="isModalOpen"
	autoConnect
	autoConnectBrowserWalletIfSolo
	@connectError="connectErrorHandler"
	@autoConnectError="autoConnectErrorHandler"
	hideConnectingModal="false"
/>

::

Props

Name Type Default Description Version
modelValue boolean | undefined undefined Whether to open the modal
dark boolean false Dark mode
autoConnect boolean false Whether to autoConnect when the page loaded
autoConnectBrowserWalletIfSolo boolean false Auto click BrowserWallet if it's the only connector
hideConnectingModal boolean false Whether to hide the connecting modal
Name Type Description Version
update:modelValue () => boolean For v-model
connectError () => error emit error from try-catch
autoConnectError () => error emit error from try-catch

Slots

Name Parameters Descriptions
no-wallet-found Customize no wallet found message

Example

<VueDappModal>
	<template #no-wallet-found>
		<div class="flex justify-center items-center">No wallets</div>
	</template>
</VueDappModal>

Two approaches to open/close the modal

v-model approach

const isModalOpen = ref(false)

Must add v-model

<VueDappModal
	v-model="isModalOpen"
	autoConnect
/>

pinia approach

import { useVueDappModal } from '@vue-dapp/modal'

const { open, close } = useVueDappModal()

Don't add v-model

<VueDappModal autoConnect />

Related Packages

@vue-dapp/core

Empower dapp developers with Vue integration for crypto wallets

3,155 207
@vue-dapp/walletconnect

Empower dapp developers with Vue integration for crypto wallets

2,273 207
@vue-dapp/coinbase

Empower dapp developers with Vue integration for crypto wallets

1,885 207
@vue-dapp/nuxt

Vue Dapp Nuxt module

1,363 207
@cryptafriq/crypto-wallet-sdk-vue

A Vue SDK for integrating cryptocurrency wallet functionality into your website.

506

Version History

Version Released Vue License
1.5.9 >=3.3.6 MIT
1.5.8 >=3.3.6 MIT
1.5.7 >=3.3.6 MIT
1.5.6 >=3.3.6 MIT
1.5.5 >=3.3.6 MIT
Pre-releases (14)
Version Released Vue License
1.5.9-beta.0 >=3.3.6 MIT
1.5.6-beta.0 >=3.3.6 MIT
1.5.1-alpha.1 >=3.3.6 MIT
1.5.1-alpha.0 >=3.3.6 MIT
1.5.0-alpha.1 >=3.3.6 MIT