SwapRoute
Multi-hop path visualization.
npx shadcn add @lopifi/swap-routeHow it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Multi-hop path (USD → USDC → EUR). Rendered as a horizontal flow, each hop with its own rate and fee. A rare legitimate use of the isometric flow-diagram treatment, where motion explains the mechanism.
More in Swaps & FX
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section SwapRoute renders in, the calculators behind its figures, and the ledger payloads that feed it.
- SwapRoute, runningThe swaps showcase — live, with theme, density, grayscale and reduced-motion switches.
- Swaps & FXThe rule for this family: A rate is a perishable fact. It never appears without a timestamp, and it is never transacted on without a lock. Specs for 9 React components: SwapWidget, RateLine, RateLock, ConversionBreakdown and 5 more.