Home/Docs/Components/Token-swap

Token Swap

A customizable widget for swapping tokens with real-time price updates and slippage control.

Swap Tokens

%

Installation

Run the following command to add the Token Swap component to your project:

npx w3-kit@latest add token-swap

This will:

  • Create the component in your components/ui directory
  • Add all necessary dependencies to your package.json
  • Set up required configuration files
  • Add token swap utilities to your project