skills/nexus-elements-view-history/SKILL.md
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.
npx skillsauth add availproject/nexus-elements nexus-elements-view-historyInstall 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/view-historyNexusProvider is installed and initialized before rendering.useNexus().nexusSDK is initialized.useNexus().handleInit(provider).useNexus().nexusSDK before expecting history fetches."use client";
import ViewHistory from "@/components/view-history/view-history";
export function HistoryPanel() {
return <ViewHistory viewAsModal={false} className="w-full" />;
}
viewAsModal? (default true): modal trigger vs inline list.className?: styling for trigger in modal mode.sdk.getMyIntents()ITEMS_PER_PAGE = 10)FulfilledDepositedRefundedFailednexus:intent-history:refreshhistory === null renders loading state.loadError and renders retry UI.getMyIntents fetch.development
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.
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.