Skip to content

@swapped/connect-sdk / react / CashAppProviderProps

Type Alias: CashAppProviderProps

CashAppProviderProps = object

Defined in: src/react/cash-app/providers/CashAppProvider.tsx:16

Props for CashAppProvider.

Properties

adjustAmountOnAssetChange?

optional adjustAmountOnAssetChange?: boolean

Defined in: src/react/cash-app/providers/CashAppProvider.tsx:28

When the selected asset changes and the current amount is above 0 but below the new minimum, bump the amount up to that minimum. Defaults to false.


autoSelectAsset?

optional autoSelectAsset?: boolean

Defined in: src/react/cash-app/providers/CashAppProvider.tsx:19

Auto-select the default or first supported asset. Defaults to true.


children

children: ReactNode

Defined in: src/react/cash-app/providers/CashAppProvider.tsx:17


defaultAsset?

optional defaultAsset?: CashAppDefaultAsset

Defined in: src/react/cash-app/providers/CashAppProvider.tsx:21

Preferred initial asset when present in the loaded list.


enabled?

optional enabled?: boolean

Defined in: src/react/cash-app/providers/CashAppProvider.tsx:23

Skip fetching assets until explicitly enabled. Defaults to true.