Swap Token Form
A Solana token swap component with shadcn UI styling
Swap Token Form
Swap Tokens
Installation
Install dependencies
Start by installing required Solana dependencies
pnpm add @solana/web3.js @solana/wallet-adapter-react
Add Wallet Provider
Make sure you have added the Wallet Provider to your application. If not, follow the steps in the Connect Wallet Button guide first.
Add Swap Token Form
pnpm dlx shadcn@canary add https://www.murphyai.dev/r/swap-token-form.json