CDP Frontend SDK
    Preparing search index...

    Interface FundModalProps

    All the props for the Fund component.

    interface FundModalProps {
        children?: ReactNode;
        open?: boolean;
        setIsOpen?: (value: boolean) => void;
        className?: string;
        fetchBuyOptions: FetchBuyOptions;
        fetchBuyQuote: FetchBuyQuote;
        inputType?: InputType;
        openIn?: "tab" | "popup";
        redirectUrl?: string;
        submitLabel?: ReactNode;
        title?: ReactNode;
        country: string;
        locale?: string;
        cryptoDecimalPlaces?: number;
        cryptoCurrency: string;
        fiatCurrency: string;
        fiatDecimalPlaces?: number;
        network: string;
        presetAmountInputs?: FundPresetAmountInputs;
        subdivision?: string;
        destinationAddress: string;
        onError?: (e: undefined | OnrampError) => void;
        onStatus?: (lifecycleStatus: FundLifecycleStatus) => void;
        onSuccess?: (result?: OnrampSuccessEventData) => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    children?: ReactNode

    The children to render inside the modal.

    open?: boolean

    Whether the modal is open. Note: if you set this, you must also set setIsOpen.

    setIsOpen?: (value: boolean) => void

    A function to set the modal's open state. Note: if you set this, you must also set open.

    className?: string
    fetchBuyOptions: FetchBuyOptions
    fetchBuyQuote: FetchBuyQuote
    inputType?: InputType
    openIn?: "tab" | "popup"
    redirectUrl?: string
    submitLabel?: ReactNode
    title?: ReactNode
    country: string
    locale?: string
    cryptoDecimalPlaces?: number
    cryptoCurrency: string
    fiatCurrency: string
    fiatDecimalPlaces?: number
    network: string
    presetAmountInputs?: FundPresetAmountInputs
    subdivision?: string
    destinationAddress: string
    onError?: (e: undefined | OnrampError) => void
    onStatus?: (lifecycleStatus: FundLifecycleStatus) => void
    onSuccess?: (result?: OnrampSuccessEventData) => void