Try out the Plugin Playground to experience the full swap features and see the different customization options with code snippets.For the full customization options, you can refer to the repository.
Full TypeScript Declaration
Full TypeScript Declaration
Display Modes
Jupiter Plugin offers three distinct display modes to suit different use cases:1. Integrated Mode
The integrated mode embeds the swap form directly into your application’s layout. This is ideal for creating a seamless swap experience within your dApp.2. Widget Mode
The widget mode creates a floating swap form that can be positioned in different corners of the screen. Perfect for quick access to swaps without taking up too much space.3. Modal Mode
The modal mode displays the swap form in a popup overlay. This is useful when you want to keep the swap form hidden until needed.Form Props Configuration
TheformProps
object allows you to customize the initial state and behavior of the swap form! This can be useful for use cases like fixed token swaps for memecoin communities or fixed amount payments.
Wallet Integration
Jupiter Plugin supports third-party wallet integration through theenableWalletPassthrough
prop. This allows your application to pass through an existing wallet provider’s connection in your application to Plugin. If you do not have an existing wallet provider, Plugin will provide a wallet adapter and connection - powered by Unified Wallet Kit.
Event Handling
Jupiter Plugin provides event handlers to track swap operations:Branding
Jupiter Plugin supports branding through thebranding
prop. This allows you to customize the Plugin’s logo and name to include your own branding.