BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/avail-widgets/fast-bridge

Fast Bridge

avail-widgets/fast-bridge
FreeComponent

Deprecated: use Nexus Widget instead. A legacy component built with Nexus to enable cross chain bridging.

Install it

npx shadcn@latest add https://elements.nexus.availproject.org/r/fast-bridge.json

Source

registry/avail-widgets/fast-bridge/fast-bridge.tsxelements.nexus.availproject.org/r/fast-bridge.json · first 6 KB
1"use client";
2import { type FC, useEffect, useState } from "react";
3import { Card, CardContent } from "../ui/card";
4import ChainSelect from "./components/chain-select";
5import TokenSelect from "./components/token-select";
6import { Button } from "../ui/button";
7import { LoaderPinwheel, X } from "lucide-react";
8import { useNexus } from "../nexus/NexusProvider";
9import AmountInput from "./components/amount-input";
10import FeeBreakdown from "./components/fee-breakdown";
11import {
12 Dialog,
13 DialogContent,
14 DialogHeader,
15 DialogTitle,
16 DialogTrigger,
17} from "../ui/dialog";
18import TransactionProgress from "./components/transaction-progress";
19import AllowanceModal from "./components/allowance-modal";
20import useBridge from "./hooks/useBridge";
21import SourceBreakdown from "./components/source-breakdown";
22import { type Address } from "viem";
23import { Skeleton } from "../ui/skeleton";
24import RecipientAddress from "./components/recipient-address";
25import ViewHistory from "../view-history/view-history";
26
27interface FastBridgeProps {
28 connectedAddress: Address;
29 maxAmount?: string | number;
30 prefill?: {
31 token: string;
32 chainId: number;
33 amount?: string;
34 recipient?: Address;
35 };
36 onComplete?: (explorerUrl?: string) => void;
37 onStart?: () => void;
38 onError?: (message: string) => void;
39}
40
41const FastBridge: FC<FastBridgeProps> = ({
42 connectedAddress,
43 maxAmount,
44 onComplete,
45 onStart,
46 onError,
47 prefill,
48}) => {
49 const handleComplete = (explorerUrl?: string) => {
50 onComplete?.(explorerUrl);
51 };
52
53 const [isSourceMenuOpen, setIsSourceMenuOpen] = useState(false);
54 const {
55 nexusSDK,
56 intent,
57 bridgableBalance,
58 allowance,
59 network,
60 fetchBridgableBalance,
61 } = useNexus();
62
63 const {
64 inputs,
65 setInputs,
66 timer,
67 loading,
68 refreshing,
69 isDialogOpen,
70 txError,
71 setTxError,
72 handleTransaction,
73 reset,
74 filteredBridgableBalance,
75 startTransaction,
76 setIsDialogOpen,
77 commitAmount,
78 lastExplorerUrl,
79 steps,
80 status,
81 availableSources,
82 selectedSourceChains,
83 toggleSourceChain,
84 isSourceSelectionInsufficient,
85 isSourceSelectionReadyForAccept,
86 sourceCoverageState,
87 sourceCoveragePercent,
88 missingToProceed,
89 missingToSafety,
90 selectedTotal,
91 requiredTotal,
92 requiredSafetyTotal,
93 maxAvailableAmount,
94 isInputsValid,
95 } = useBridge({
96 prefill,
97 network: network ?? "mainnet",
98 connectedAddress,
99 nexusSDK,
100 intent,
101// … truncated

What it pulls in

npm packages

  • @avail-project/nexus-core@2.2.3
  • lucide-react
  • viem

Other registry items

  • availproject/widgets/accordion
  • availproject/widgets/button
  • availproject/widgets/card
  • availproject/widgets/checkbox
  • availproject/widgets/dialog
  • availproject/widgets/input
  • availproject/widgets/label
  • availproject/widgets/nexus-provider
  • availproject/widgets/select
  • availproject/widgets/skeleton
  • availproject/widgets/tooltip
  • availproject/widgets/utils
  • availproject/widgets/view-history

Files it writes

  • registry/avail-widgets/fast-bridge/components/allowance-modal.tsx
  • registry/avail-widgets/fast-bridge/components/amount-input.tsx
  • registry/avail-widgets/fast-bridge/components/chain-select.tsx
  • registry/avail-widgets/fast-bridge/components/fee-breakdown.tsx
  • registry/avail-widgets/fast-bridge/components/recipient-address.tsx
  • registry/avail-widgets/fast-bridge/components/source-breakdown.tsx
  • registry/avail-widgets/fast-bridge/components/token-select.tsx
  • registry/avail-widgets/fast-bridge/components/transaction-progress.tsx
  • registry/avail-widgets/fast-bridge/fast-bridge.tsx
  • registry/avail-widgets/fast-bridge/hooks/useBridge.ts
  • registry/avail-widgets/common/components/ErrorBoundary.tsx
  • registry/avail-widgets/common/hooks/useDebouncedCallback.ts
  • registry/avail-widgets/common/hooks/useDebouncedValue.ts
  • registry/avail-widgets/common/hooks/useInterval.ts
  • registry/avail-widgets/common/hooks/useLatest.ts
  • registry/avail-widgets/common/hooks/useNexusError.ts
  • registry/avail-widgets/common/hooks/usePolling.ts
  • registry/avail-widgets/common/hooks/useStableCallback.ts
  • registry/avail-widgets/common/hooks/useStopwatch.ts
  • registry/avail-widgets/common/hooks/useTransactionExecution.ts
  • registry/avail-widgets/common/hooks/useTransactionFlow.ts
  • registry/avail-widgets/common/index.ts
  • registry/avail-widgets/common/tx/steps.ts
  • registry/avail-widgets/common/tx/types.ts
  • registry/avail-widgets/common/tx/useTransactionSteps.ts
  • registry/avail-widgets/common/types/transaction-flow.ts
  • registry/avail-widgets/common/utils/constant.ts
  • registry/avail-widgets/common/utils/token-pricing.ts
  • registry/avail-widgets/common/utils/transaction-flow.ts

Facts

Registry
avail-widgets
Type
registry:component
Access
Free
Files written
29
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

elements.nexus.availproject.org availproject/widgets on GitHub Raw registry item This item as JSON

More from avail-widgets

All 27 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionavail-widgetsComponentsFree2 deps
All Elementsallavail-widgetsComponentsFreeno deps
Animated Spinneranimated-spinneravail-widgetsComponentsFreeno deps
Badgebadgeavail-widgetsComponentsFree2 deps
Bridge Depositbridge-depositavail-widgetsComponentsFree3 deps · 32 files
Buttonbuttonavail-widgetsComponentsFree2 deps
Cardcardavail-widgetsComponentsFreeno deps
Checkboxcheckboxavail-widgetsComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex