0.0.4 • Published 2 years ago

@anima.org/db-widgt v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Darkblock.io React Component Library

Getting Started 🚀

Install Darkblock's React Component Library using yarn or npm

yarn add @darkblock.io/darkblock-widget
npm i @darkblock.io/darkblock-widget --save

Once the library is installed, import or require components into your codebase

import "@iproov/web"

require("@iproov/web")

Solana Widget Component

Input

  • tokenId: id of the NFT in Solana
  • wallets: array of @solana/wallet-adapter-wallets

Examlple

This component needs to be used within the scope of the Solana Wallet Adapter component like in the following example:

import {SolanaDarkblockWidget} from "@darkblock.io/darkblockwidgets"

const Main = () => {
  ...

  return (
    <ConnectionProvider endpoint={endpoint}>
      <WalletProvider wallets={wallets} autoConnect>
        <WalletModalProvider>
          <WalletMultiButton />

          <SolanaDarkblockWidget
            tokenId="PgYulnWM90pi2oc3MpG31yvUHoWhSog17jTbjKYRjEJ"
            wallets={wallets}
          />

        </WalletModalProvider>
      </WalletProvider>
    </ConnectionProvider>
  )
}

export default Main
0.0.4

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago