🎯

nexus-elements-common

🎯Skill

from availproject/nexus-elements

VibeIndex|
What it does

Provides shared React hooks and utilities for Nexus Elements UI components, including polling, stopwatch, and transaction step management.

πŸ“¦

Part of

availproject/nexus-elements(9 items)

nexus-elements-common

Installation

pnpmRun with pnpm
pnpm dev
Quick InstallInstall with npx
npx skills add availproject/nexus-elements
Quick InstallInstall with npx
npx skills add https://github.com/availproject/nexus-elements --skill nexus-elements-deposit
πŸ“– Extracted from docs: availproject/nexus-elements
2Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Shared Nexus Elements hooks and utilities (components/common). Use when you need common hooks like usePolling, useStopwatch, or transaction step utilities outside of the widgets.

Overview

# Nexus Elements - Common

Overview

Use the shared hooks/utilities under components/common (polling, debouncing, transaction steps, constants) when building custom Nexus UI.

When to use

  • You want to import usePolling, useStopwatch, useTransactionSteps, or shared constants like SHORT_CHAIN_NAME.
  • You are building a custom component and need the common ErrorBoundary.

Install

There is no standalone @nexus-elements/common registry item. Common files are bundled into most component registries.

Option A: Install any widget that includes common

Install a widget (fast-bridge, transfer, deposit, bridge-deposit, swaps, unified-balance, view-history). It will lay down components/common/* files.

Option B: Manual copy

Copy the files from:

  • registry/nexus-elements/common/* in this repo, or
  • Any https://elements.nexus.availproject.org/r/.json that includes components/common/* in its files list.

Usage

```ts

import {

usePolling,

useStopwatch,

useTransactionSteps,

SHORT_CHAIN_NAME,

} from "@/components/common";

```

Notes

  • Keep components/common/index.ts intact to preserve exports.
  • useTransactionSteps pairs with NEXUS_EVENTS (STEPS_LIST, STEP_COMPLETE, SWAP_STEP_COMPLETE) for progress UIs.
  • These utilities are internal helpers; prefer using full widgets unless you need custom UI.