Inspired by @aptos-labs/wallet-adapter-react, this is a Vue.js(Nuxt4 as of now) connector for Aptos Wallets.
npm install @aptos-labs/wallet-adapter-core
# or
yarn add @aptos-labs/wallet-adapter-core
# or
pnpm add @aptos-labs/wallet-adapter-core
# or
bun add @aptos-labs/wallet-adapter-core
# install it as nuxt layer
npm install --save @moar-market/aptos-wallets-vue
-
Copy the client plugin from the ./app/plugins/wallet/wallet.client.ts to your
plugins
directory. -
Add this to
nuxt.config.ts
export default defineNuxtConfig({
// ...
extends: [
'@moar-market/aptos-wallets-vue',
]
// plugins: plugin should auto register as nuxt's default behavior
// ...
})
Use useWallet
composable to get the wallet state and methods.
Note: UI is written using unocss with tailwind like config, should work with tailwind.