Skip to content

@swapped/connect-sdk / react / useDualAmountInput

Function: useDualAmountInput()

useDualAmountInput(options): UseDualAmountInputResult

Defined in: src/react/amount-input/useDualAmountInput.ts:251

Controlled dual crypto/fiat amount input.

Crypto is the canonical value for validation and submission. Writing either side recomputes the other from exchangeRate. Internal only — not exported from the public React barrel.

Parameters

options

UseDualAmountInputOptions

Returns

UseDualAmountInputResult