💻Widget
Easily integrate Panora's swap functionality into your application with our lightweight, plug-and-play SDK — enabling seamless token swaps and real-time data directly within your platform.
Key Features
Display Modes
Mode
Description
Supported Frameworks
Getting an API Key
Installation

Quick Start
Option A: NPM (React / Next.js)
Option B: CDN (plain HTML)
React App Example
1. Create a New Project
2. Install the SDK
3. Add the Widget
4. Run
Using the React Component
Key Points
Next.js Example (App Router)
1. Create a New Project
2. Install the SDK
3. Add the Widget
Widget Mode Example
Modal Mode Example
Next.js Pages Router
Key Points
HTML App Example
1. Create an HTML File
2. Serve It
Widget Mode (Floating Button)
Modal Mode (Popup)
API Reference (CDN)
Method
Description
Key Points
Configuration
API & RPC
Property
Type
Default
Description
Display
Property
Type
Default
Description
Widget Button (WIDGET mode only)
Property
Type
Default
Description
Tokens
Property
Type
Default
Description
Swap Settings
Property
Type
Default
Description
Wallet
Property
Type
Default
Description
Integrator Fees
Property
Type
Default
Description
Transaction Options
Property
Type
Default
Description
Localization
Property
Type
Default
Description
Code
Language
Notifications
Property
Type
Default
Description
Validation Rules
Property
Rule
Theming
Usage
Theme Properties
Property
Default
Description
Default Theme
API Reference
NPM Package Exports
init(config?)
init(config?)Parameter
Type
Description
Mode
What happens
render(container, config?)
render(container, config?)Parameter
Type
Description
close()
close()resume()
resume()<PanoraWidget />
<PanoraWidget />CDN Global: PanoraWidget
PanoraWidgetParameter
Type
Description
Attribution
Last updated