Panora
  • 👋Welcome to Panora
  • 🌐Official Links
  • PRODUCT SUITE
    • 💱Panora Swap
    • 📊Panora Trade
  • Developer
    • 💻Swap Widget
      • Install Widget
      • Widget Configuration
      • Theme Customization
      • Widget Controls
      • Guide
    • 🤖Swap API & SDK
      • 💻Swap API
        • Examples
      • 🖥️Swap SDK
      • 💦Supported Sources
    • 🎞️Swap iframe
    • 🪙Token List
      • 📔How to Add Your Token to the Panora Token List
    • 💲Token Prices
  • PARTNERSHIPS
    • 🤝Become Our Partner
    • 🏢Media & Brand Kit
  • FAQs
    • ❓Panora Help
  • LEGAL
    • 🗒️Legal Disclaimer
    • 🔓Brand & Logos
    • 📏Terms of Use
Powered by GitBook
On this page
  • Description
  • Installation
  1. Developer
  2. Swap Widget

Install Widget

Description

The Panora Swap Aggregator Widget SDK allows developers and projects to easily integrate Panora's powerful widget into their projects. With this SDK, you can enable users to swap directly within your platform, providing your users with access to the best routes and rates in the market.

Installation

Using Yarn

yarn add @panoraexchange/widget-sdk

Using npm

npm add @panoraexchange/widget-sdk

Using pnpm

pnpm add @panoraexchange/widget-sdk

Basic Example

To get started quickly, here's a basic example of how to integrate the Panora Swap Aggregator Widget into your application:

import { PanoraWidget,  PanoraWidgetConfig } from "@panoraexchange/widget-sdk"

const widgetConfig: PanoraWidgetConfig = {
    API_KEY: "YOUR_API_KEY"
  };

export const Page = () => {
  return (
    <PanoraWidget config={widgetConfig} />
  );
};

Compatibility

PreviousSwap WidgetNextWidget Configuration

Last updated 2 months ago

Create-React-App (React 18)

Next.js

💻
(Example)
(Example)