0.4.28 • Published 6 days ago

@archway-kit/vue v0.4.28

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 days ago

Installation

Please note that this library only supports Vue 3.

npm install @archway-kit/vue

It also requires the Vue project to have the following tools installed:

Then you have to add the following value to the content array in your tailwind.config.js file:

  content: [
    // ...
    "./node_modules/@archway-kit/vue/dist/*.js"
  ],
  plugins: [
    // ...
    require('@archway-kit/tailwind-plugin')({
      // ...plugin config
    }),
  ]

See details about configuring the Archway tailwind plugin here.

Documentation

UserToolbar

Shows a button to connect your wallet (Keplr, Cosmostation or Leap) and after a successful connection, it displays the connected account info and a disconnect button.

<script setup lang="tsx">
  import { ConstantineChainInfo } from '@archway-kit/wallet';
</script>

<template>
  <UserToolbar :chain-info="ConstantineChainInfo" />
</template>

Then the connected account can be accessed from the useWallet() hook, and the authentication status from the useAuth() hook:

<script setup lang="tsx">
  import { useWallet } from '@archway-kit/vue';

  const { isAuthenticated, address, name, connectedWallet, isLoading, disconnect } = useWallet();
</script>

The UserToolbar component also receives the following props for further customization:

  • showWalletName: { type: Boolean, default: true }
  • connectButtonClassName: { type: String, default: '' }
  • disconnectButtonClassName: { type: String, default: '' }
  • primaryButtonClassName: { type: String, default: '' }
  • cancelButtonClassName: { type: String, default: '' }

More

For full documentation about the Archway Network and its ecosystem, visit Archway Docs.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discuss Archway Kit on GitHub

0.4.28

6 days ago

0.4.26

6 days ago

0.4.27

6 days ago

0.4.25

7 days ago

0.4.24

10 days ago

0.4.23

13 days ago

0.4.22

16 days ago

0.4.21

20 days ago

0.4.20

21 days ago

0.4.19

27 days ago

0.4.18

27 days ago

0.4.17

1 month ago

0.4.15

2 months ago

0.4.16

2 months ago

0.4.14

2 months ago

0.4.13

2 months ago

0.4.12

2 months ago

0.4.11

2 months ago

0.4.10

2 months ago

0.4.9

2 months ago

0.4.8

2 months ago

0.4.5

3 months ago

0.4.7

3 months ago

0.4.6

3 months ago

0.4.4

3 months ago

0.4.3

3 months ago

0.4.2

3 months ago

0.4.1

3 months ago

0.4.0

3 months ago

0.3.12

3 months ago

0.3.11

3 months ago

0.3.10

3 months ago

0.3.9

3 months ago

0.3.6

3 months ago

0.3.8

3 months ago

0.3.7

3 months ago

0.3.0

4 months ago

0.3.5

3 months ago

0.3.2

3 months ago

0.3.1

3 months ago

0.3.4

3 months ago

0.3.3

3 months ago

0.2.13

4 months ago

0.2.12

4 months ago

0.2.11

4 months ago

0.2.10

4 months ago

0.2.9

4 months ago

0.2.8

4 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.5

5 months ago

0.2.4

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.1.20

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.17

5 months ago

0.1.18

5 months ago

0.1.19

5 months ago

0.1.12

6 months ago

0.1.13

6 months ago

0.1.14

6 months ago

0.1.15

6 months ago

0.1.16

6 months ago

0.1.11

6 months ago

0.1.10

6 months ago

0.1.9

6 months ago

0.1.8

7 months ago

0.1.7

7 months ago

0.1.6

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago