Skip to main content
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.
If you are using TypeScript, you can use the type declaration file to get the full type definitions for the Plugin.

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

The formProps 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 the enableWalletPassthrough 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 the branding prop. This allows you to customize the Plugin’s logo and name to include your own branding.

Color Theme

Jupiter Plugin supports a simplified way to customize the color theme. This allows you to match the appearance of the Plugin to your brand.

Examples

Fixed SOL Swap

Payment Integration

Floating Widget