Skip to main content

Overview

The CoW Widget is a ready-to-use React component that provides the full CoW Swap trading experience. It’s perfect for projects that want to add trading functionality quickly without building a custom interface from scratch.

Key Features

  • Zero configuration: Works out-of-the-box with minimal setup
  • Fully responsive: Adapts to different screen sizes
  • Customizable themes: Light, dark, and custom color schemes
  • Partner fees: Earn revenue on trades through your integration
  • Multi-network support: All CoW Protocol-enabled networks
  • Wallet integration: Connect to existing wallet providers or standalone mode

Quick Start Example

Installation

Configuration Options

The widget supports extensive customization:
  • Trading pairs: Pre-select sell/buy tokens and amounts
  • Partner fees: Earn revenue on trades (up to 1%)
  • Custom themes: Match your app’s branding
  • Token lists: Use custom token lists
  • Wallet integration: Connect to your app’s wallet or standalone mode
  • Event handling: Listen to trading events and notifications

Example with Custom Theme

When to Use the Widget

  • Rapid integration: Get trading functionality live in minutes
  • Standard UI/UX: When CoW Swap’s interface meets your needs
  • Minimal development: Perfect for MVPs and quick prototypes
  • Partner fees: Easy way to monetize trading volume

Widget Configurator

Use the interactive configurator at widget.cow.fi to:
  • Preview different configurations
  • Generate code snippets
  • Test custom themes
  • Configure partner fees

Next Steps

For detailed configuration options, event handling, and advanced customization, see the Widget Tutorial.

Resources

Last modified on March 12, 2026