A minimal Next.js App Router example demonstrating all three display modes of the Panora swap widget.
npm install
npm run devOpen http://localhost:3457.
Copy .env.example to .env.local and add your API key (optional — the widget falls back to a public key):
cp .env.example .env.local- The
"use client"directive is required on any component that callsinit()orclose(), since the widget uses browser APIs. - The widget loads its UI from the CDN at runtime, so your Next.js bundle size is unaffected.
- INTEGRATED — Renders inline inside a target
<div> - WIDGET — Floating button in the corner
- MODAL — Centered popup dialog