@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
19 lines (18 loc) • 640 B
TypeScript
/**
* Theme for the Stripe wallet button appearance.
* Matches Apple Pay button styles: 'black', 'white', or 'white-outline'
* @default "black"
*/
export type WalletButtonTheme = "black" | "white" | "white-outline";
export type WalletButtonRender = (node: HTMLElement, params: {
selectedPackageId: string;
onReady?: (walletButtonAvailable?: boolean) => void;
walletButtonTheme?: WalletButtonTheme;
}) => {
destroy?: () => void;
update?: (updateParams: {
selectedPackageId: string;
onReady?: (walletButtonAvailable?: boolean) => void;
walletButtonTheme?: WalletButtonTheme;
}) => void;
};