| name | nexus-elements-swaps |
| description | DEPRECATED — SwapWidget has been removed. Use Nexus One (config.mode = "swap") for all cross-chain swap and bridge flows. Refer to the nexus-one-swaps agent skill for current integration guidance. |
⚠️ Deprecated — Use Nexus One Swaps
SwapWidget has been removed from Nexus Elements.
All cross-chain swaps (exact-in and exact-out) and bridges are now handled by Nexus One with config.mode = "swap".
Migration
Replace any SwapWidget usage with NexusOne:
import { NexusOne } from "@/components/nexus-one/nexus-one";
<NexusOne
config={{
mode: "swap",
prefill: {
source: { token: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", chain: 42161 },
destination: { token: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", chain: 8453 },
},
}}
connectedAddress={address}
/>
Install Nexus One
npx shadcn@latest add @nexus-elements/nexus-one
Recommended skill to use instead
For integration guidance, refer to the Nexus One Swaps agent skill:
nexus-one-swaps — Setup, prefill config, and callbacks for swaps and bridging with Nexus One.
Documentation