---
name: avail-widgets-common
description: "DEPRECATED — Common hooks and helpers are now internal to Nexus Widget. Use Nexus Widget for all flows. Refer to the nexus-sdk-* agent skills for building custom integrations."
---

# ⚠️ Deprecated — Use Nexus Widget

**The Common hooks package is now internal to Nexus Widget.**

Shared hooks like `useTransactionSteps`, `usePolling`, `useDebouncedValue`, and `useNexusError` are bundled inside Nexus Widget and no longer need separate installation or direct usage.

## Migration

- If you were using Common hooks to build custom flows, use **Nexus Widget** directly — it handles all swap, send, and deposit flows out of the box.
- If you need programmatic SDK access for custom UX, use the Nexus SDK directly.

## Install Nexus Widget

**npm (recommended):**
```bash
npm install @avail-project/widgets viem wagmi @tanstack/react-query
```

**shadcn:**
```bash
npx shadcn@latest add availproject/widgets/nexus
```

## Current skills to use instead

For building custom integrations, refer to the **Nexus SDK agent skills** (`.agents/skills/`):

- `nexus-sdk-setup` — SDK initialization and wallet wiring
- `nexus-sdk-bridge-flows` — bridge, bridgeAndTransfer, bridgeAndExecute
- `nexus-sdk-swap-flows` — swapWithExactIn, swapWithExactOut, swapAndExecute
- `nexus-sdk-hooks-events` — intent hooks and event streaming
- `nexus-sdk-balances-metadata-utils` — balances, supported chains/tokens, formatters
- `nexus-sdk-integration` — end-to-end integration guide
