@leapwallet/elements
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Leap Elements SDK

How to use

Install

npm install @leapwallet/elements

Usage

import { Swaps, WalletClientContextProvider } from '@leapwallet/elements'
import '@leapwallet/elements/styles.css'

import { useElementsWalletConfig } from './wallet-client-config'

const YourDapp = () => {
  // wallet client object for elements, read docs for more
  const walletConfig = useElementsWalletConfig()

  return (
    <div className="leap-ui">
      <WalletClientContextProvider value={walletConfig}>
        <LiquidityView />
      </WalletClientContextProvider>
    </div>
  )
}

Documentation

Developer Docs

TypeDocs

Development

Install

yarn install

Run Development Builds

Run the following two commands in the project root:

yarn dev

Go to http://localhost:5173/ to see the development page.

Readme

Keywords

Package Sidebar

Install

npm i @leapwallet/elements

Weekly Downloads

730

Version

1.2.1

License

MIT

Unpacked Size

45.8 MB

Total Files

225

Last publish

Collaborators

  • leapwallet