Skip to content

@swapped/connect-sdk / react / useAmountInput

Function: useAmountInput()

useAmountInput(options?): UseAmountInputResult

Defined in: src/react/amount-input/useAmountInput.ts:136

Shared controlled amount input: sanitize, parse, validate, and touch state.

Used internally by Exchange Pay and Coinbase providers; also safe to use directly for custom amount UIs.

Parameters

options?

UseAmountInputOptions = {}

Returns

UseAmountInputResult