@moar-market/aptos-wallets-vue
v0.0.1
Published
Aptos Wallets Vue Connector for Nuxt4
Downloads
5
Readme
Aptos Wallets Vue Connector for Nuxt4
Inspired by @aptos-labs/wallet-adapter-react, this is a Vue.js(Nuxt4 as of now) connector for Aptos Wallets.
Installation
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
Setup
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.