Learn how to integrate the widget into your next.js application enabling users to perform swaps, bridge assets, lend, stake, zap and swidge directly within the application
Why client side rendering?
"use client"
directive and a small client side rendering wrapper component
First, create a Widget.tsx
file (or a similar descriptive name) within your components directory. This component will encapsulate the GlueX widget and ensure it renders only on the client side
ssr: false
to import the widget dynamically
config
prop. This allows you to tailor its behavior, default settings and connected services to match your application’s requirements. For a complete list of all available configuration options and their detailed descriptions, please refer to the widget configuration section