Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dexhunterio/swaps

Package Overview
Dependencies
Maintainers
3
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dexhunterio/swaps

### How to use library - Install package: ```console npm i @dexhunterio/swaps ``` - Import to your code: ```js import Swap from '@dexhunterio/swaps' import '@dexhunterio/swaps/lib/assets/style.css' ... ``` - Use Swap Compon

  • 0.0.19
  • npm
  • Socket score

Version published
Weekly downloads
1K
decreased by-33.53%
Maintainers
3
Weekly downloads
 
Created
Source

Dex Hunter - Swap Component

How to use library

  • Install package:
    npm i @dexhunterio/swaps
    
  • Import to your code:
    import Swap from '@dexhunterio/swaps'
    import '@dexhunterio/swaps/lib/assets/style.css'
    ...
    
  • Use Swap Component:
    function App() {
        return <div>
          <Swap {...settings} />
        </div>;
    }
    

Available props:

PropRequired?TypeDefaultDescription
defaultTokenfalsestring
widthfalsepx|%
heightfalsepx|%
themefalsedark|lightdark
orderTypesfalsearray['SWAP', 'LIMIT']
supportedTokensfalsetokenId[]list of token id that you can search
partnerNametruestring
partnerCodetruestring
colorsfalseobjectSupported colors:mainText subText background containers buttonText accent
classNamefalsestring
stylefalsestring

FAQs

Package last updated on 24 Oct 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