Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Multi-chain Swap

Preview

Swap

≈ $3,142

1.245· Ethereum
18.702381

≈ $3,142

12.4· Solana
RateNetwork fee$0.42Slippage0.50%ETA≈ 24s

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/swap

Import the shared styles once in your application.

TSUsage
import MultiChainSwap from '@/components/beui/blocks/MultiChainSwap.vue'
import '@/components/beui/styles.css'

API Reference

chains?
SwapChain[]
DefaultswapChains
tokens?
SwapToken[]
DefaultswapTokens
defaultFromId?
string
Defaulteth-eth
defaultToId?
string
Defaultsol-sol
labels?
Partial<typeof swapMessages>

Override any built-in string.

Default—
className?
string
Default—
@swap?
(quote: { fromId: string; toId: string; amount: number; receive: number; destination: string }) => void
Default—

Updated