react-card-network-icons
Version:
React svg components for the common payment card network logos.
28 lines (19 loc) • 1.39 kB
text/typescript
interface CardNetworkIconProps extends React.SVGAttributes<SVGElement> {
referenceHeight?: number;
}
type CardNetworkIcon = JSX.Element;
type CardNetworkIconType = 'amex' | 'diners' | 'discover' | 'jcb' | 'mastercard' | 'union-pay' | 'visa';
declare const Amex: ({ referenceHeight, width: propWidth, height: propHeight, ...rest }: CardNetworkIconProps) => CardNetworkIcon;
declare const Diners: ({ referenceHeight, width: propWidth, height: propHeight, ...rest }: CardNetworkIconProps) => CardNetworkIcon;
declare const Discover: ({ referenceHeight, width: propWidth, height: propHeight, ...rest }: CardNetworkIconProps) => CardNetworkIcon;
declare const JCB: ({ referenceHeight, width: propWidth, height: propHeight, ...rest }: CardNetworkIconProps) => CardNetworkIcon;
declare const Mastercard: {
({ referenceHeight, width: propWidth, height: propHeight, ...rest }: CardNetworkIconProps): CardNetworkIcon;
displayName: string;
};
declare const UnionPay: ({ referenceHeight, width: propWidth, height: propHeight, ...rest }: CardNetworkIconProps) => CardNetworkIcon;
declare const Visa: {
({ referenceHeight, width: propWidth, height: propHeight, ...rest }: CardNetworkIconProps): CardNetworkIcon;
displayName: string;
};
export { Amex, type CardNetworkIcon, type CardNetworkIconProps, type CardNetworkIconType, Diners, Discover, JCB, Mastercard, UnionPay, Visa };