Skip to content

@swapped/connect-sdk / react / UseExchangePayAmountOptions

Type Alias: UseExchangePayAmountOptions

UseExchangePayAmountOptions = object

Defined in: src/react/exchange-pay/hooks/useExchangePayAmount.ts:18

Options for useExchangePayAmount.

Properties

clampToMax?

optional clampToMax?: boolean

Defined in: src/react/exchange-pay/hooks/useExchangePayAmount.ts:23

When true and maxAmountFiat is set, clamp the input down to the max while typing.


maxAmountFiat?

optional maxAmountFiat?: number

Defined in: src/react/exchange-pay/hooks/useExchangePayAmount.ts:25

Optional consumer-defined maximum fiat amount (currently USD).