npm install @leapwallet/elements
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>
)
}
yarn install
Run the following two commands in the project root:
yarn dev
Go to http://localhost:5173/ to see the development page.