@moar-market/aptos-wallets-vue

0.0.1 • Public • Published

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

  1. Copy the client plugin from the ./app/plugins/wallet/wallet.client.ts to your plugins directory.

  2. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @moar-market/aptos-wallets-vue

Weekly Downloads

1

Version

0.0.1

License

none

Unpacked Size

728 kB

Total Files

31

Last publish

Collaborators

  • itsmnthn