CDP Frontend SDK
    Preparing search index...

    Interface unstable_FundModalProps

    All the props for the Fund component.

    interface unstable_FundModalProps {
        children?: ReactNode;
        open?: boolean;
        setIsOpen?: (value: boolean) => void;
        className?: string;
        fetchBuyOptions: unstable_FetchBuyOptions;
        fetchBuyQuote: unstable_FetchBuyQuote;
        inputType?: unstable_InputType;
        openIn?: "tab" | "popup";
        submitLabel?: ReactNode;
        title?: ReactNode;
        country: string;
        locale?: string;
        cryptoDecimalPlaces?: number;
        cryptoCurrency: string;
        fiatCurrency: string;
        fiatDecimalPlaces?: number;
        network: string;
        presetAmountInputs?: unstable_FundPresetAmountInputs;
        subdivision?: string;
        onError?: (e: undefined | unstable_OnrampError) => void;
        onStatus?: (lifecycleStatus: unstable_FundLifecycleStatus) => void;
        onSuccess?: (result?: unstable_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: unstable_FetchBuyOptions
    fetchBuyQuote: unstable_FetchBuyQuote
    inputType?: unstable_InputType
    openIn?: "tab" | "popup"
    submitLabel?: ReactNode
    title?: ReactNode
    country: string
    locale?: string
    cryptoDecimalPlaces?: number
    cryptoCurrency: string
    fiatCurrency: string
    fiatDecimalPlaces?: number
    network: string
    presetAmountInputs?: unstable_FundPresetAmountInputs
    subdivision?: string
    onError?: (e: undefined | unstable_OnrampError) => void
    onStatus?: (lifecycleStatus: unstable_FundLifecycleStatus) => void
    onSuccess?: (result?: unstable_OnrampSuccessEventData) => void