Design System

Safe Token Swap

CopyCC

Available via @stackmates/ui-onchain

Interactive Swap Interface

A complex, multi-state swap interface with integrated safety guards, slippage warnings, and pre-execution simulation.

Swap

You PayBalance: 12.45 SOL
SOL
You ReceiveBalance: 450.00
0.00
USDC

Execution Protected

This swap is routed via Jupiter to ensure best pricing and anti-MEV protection.

PropsContribute this section

Installation

typescript
import * as solana from '@stackmates/ui-onchain/solana';
// Includes TransactionSimulator, BalanceAwareGuard, etc.
Accessibility notesContribute this section