@leapwallet/elements
v1.7.8
Published
## How to use
Downloads
7,130
Readme
Leap Elements SDK
How to use
Install
npm install @leapwallet/elements
Usage
import { Swaps, ElementsProvider } from '@leapwallet/elements'
import '@leapwallet/elements/styles.css'
import { useElementsWalletConfig } from './wallet-client-config'
const YourDapp = () => {
return (
<div className="leap-ui">
<ElementsProvider
primaryChainId="cosmoshub-4"
connectWallet={connectWallet}
connectedWalletType={walletType}
>
<LiquidityView />
</ElementsProvider>
</div>
)
}
Documentation
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.