skills/nexus-elements-unified-balance/SKILL.md
Integrate the UnifiedBalance element for cross-chain token balance views in React/TypeScript apps. Use when installing or debugging bridgeable/swappable balance aggregation, per-chain breakdown rendering, and formatting powered by Nexus SDK balance APIs.
npx skillsauth add availproject/nexus-elements nexus-elements-unified-balanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
npx shadcn@latest add @nexus-elements/unified-balanceNexusProvider is installed and initialized before rendering.useNexus().nexusSDK is initialized.useNexus().handleInit(provider).useNexus().nexusSDK before expecting balance data."use client";
import UnifiedBalance from "@/components/unified-balance/unified-balance";
export function BalancePanel() {
return <UnifiedBalance className="max-w-lg" />;
}
className?: class passthrough for container styling.bridgableBalance from sdk.getBalancesForBridge()swapBalance from sdk.getBalancesForSwap()nexusSDK.utils.formatTokenBalance(...)balanceInFiat values.className are applied in both render branches.development
Integrate the ViewHistory element for Nexus intent history in React/TypeScript apps. Use when installing or debugging intent-history retrieval, infinite-scroll pagination, modal/inline history UIs, and refresh events tied to completed bridge/transfer/deposit flows.
development
Integrate the Transfer element (registry name `transfer`) for bridge-to-recipient flows in React/TypeScript apps. Use when installing or debugging cross-chain recipient transfers, allowance/intent approvals, source-selection constraints, and `sdk.bridgeAndTransfer` step execution.
development
Integrate the SwapWidget element for cross-chain exact-in and exact-out swaps in React/TypeScript apps. Use when installing or debugging swap simulations, source selection for exact-out mode, swap intent approvals, and event-driven progress using `sdk.swapWithExactIn`/`sdk.swapWithExactOut`.
development
End-to-end integration guide for Nexus Elements in any TypeScript/React codebase. Use when setting up Nexus Elements from scratch, choosing which widget to install, wiring NexusProvider + wallet initialization, or validating bridge/transfer/swap/deposit/history behavior in production-like flows.