New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@leapwallet/elements

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leapwallet/elements

## How to use

  • 0.6.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
decreased by-19.2%
Maintainers
1
Weekly downloads
 
Created
Source

Leap Elements SDK

How to use

Install

npm install @leapwallet/elements

Usage

import {
  LiquidityView,
  ThemeContextProvider,
  WalletClientContextProvider,
  defaultBorderRadii,
  defaultBlurs,
} from '@leapwallet/elements'
import '@leapwallet/elements/styles.css'

const customElementsTheme: ThemeDefinition = {
  colors: {
    primary: '#AC4BFF',
    // other color definitions
  },
  borderRadii: defaultBorderRadii,
  blurs: defaultBlurs,
  fontFamily: 'Inter',
}

const YourDapp = () => {
  const walletClient = useWalletClient()

  const walletConfig = {
    walletClient,
    connectWallet,
    userAddress
  }

  return (
    <div>
      <ThemeContextProvider theme={customElementsTheme}>
        <WalletClientContextProvider value={walletClientConfig}>
          <LiquidityView />
        </WalletClientContextProvider>
      </ThemeContextProvider>
    </div>
  )
}

Development

Install

yarn install

Run Development Builds

Run the following two commands in separate terminals:

yarn workspace @leapwallet/elements dev
yarn workspace @leapwallet/elements-demo dev

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

Keywords

FAQs

Package last updated on 15 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc