apple-pay-button
Version:
Apple Pay Button built in React following Apple Pay Button JavaScript guidelines
21 lines (18 loc) • 697 B
TypeScript
import React from 'react';
type ButtonType = 'plain' | 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
interface ApplePayButtonProps {
buttonStyle?: 'black' | 'white' | 'white-outline';
type?: ButtonType;
locale?: string;
onClick?: () => void;
style?: {
width?: string;
height?: string;
borderRadius?: string;
padding?: string;
boxSizing?: string;
};
disabled?: boolean;
}
declare const ApplePayButton: React.FC<ApplePayButtonProps>;
export { type ApplePayButtonProps, ApplePayButton as default };