UNPKG

@revenuecat/purchases-ui-js

Version:

Web components for Paywalls. Powered by RevenueCat

21 lines (20 loc) 715 B
import type { BaseComponent } from "../base"; import type { BorderType, ShadowType, ShapeType, SizeType, Spacing } from "../.."; import type { Dimension } from "../alignment"; import type { WalletButtonTheme } from "../wallet"; export interface WalletButtonStyle { light: WalletButtonTheme; dark?: WalletButtonTheme | null; } export interface WalletButtonProps extends BaseComponent { type: "wallet_button"; size?: SizeType; dimension?: Dimension; spacing?: number; margin?: Spacing; border?: BorderType | null; shape?: ShapeType | null; style?: WalletButtonStyle | null; onWalletButtonReady?: (walletButtonAvailable?: boolean) => void; shadow?: ShadowType | null; }