UNPKG

@paypal/react-paypal-js

Version:

React components for the PayPal JS SDK

22 lines (21 loc) 646 B
import type { ReactNode } from "react"; import type { PayPalButtonsComponentOptions } from "@paypal/paypal-js"; export interface PayPalButtonsComponentProps extends PayPalButtonsComponentOptions { /** * Used to re-render the component. * Changes to this prop will destroy the existing Buttons and render them again using the current props. */ forceReRender?: unknown[]; /** * Pass a css class to the div container. */ className?: string; /** * Disables the buttons. */ disabled?: boolean; /** * Used to render custom content when ineligible. */ children?: ReactNode; }