We’re launching SwapWidget - a pre-built, customizable UI that lets you easily add a cross-chain token swap UI to your app in just a few lines of code.
import { SwapWidget } from "thirdweb/react";import { createThirdwebClient } from "thirdweb"; // 1. Create a thirdweb clientconst client = createThirdwebClient({ clientId: "YOUR_CLIENT_ID",}); // 2. Render widget in your appfunction Example() { return <SwapWidget client={client} />;}