UNPKG

react-svg-credit-card-payment-icons

Version:

React components library with 6 styles, 108 icons, TypeScript support, and a variety of types and formats for easy integration into React applications.

52 lines (49 loc) 1.42 kB
import * as React from 'react'; import { SVGProps } from 'react'; /** * Mastercard payment icon component for flat style. * * This is an auto-generated SVG React component for the Mastercard payment method. * It accepts all standard SVG element props and can be styled or sized as needed. * * @param props - Standard SVG element props (className, style, width, height, etc.) * @returns A React component rendering the Mastercard flat icon * * @example * ```tsx * import { Mastercard } from 'react-svg-credit-card-payment-icons/icons/flat'; * * // Basic usage * <Mastercard /> * * // With custom size * <Mastercard width={100} height={64} /> * * // With custom styling * <Mastercard className="my-icon" style={{ opacity: 0.8 }} /> * ``` * * @see {@link https://github.com/marcovoliveira/react-svg-credit-card-payment-icons | GitHub Repository} */ declare const Mastercard: { (props: SVGProps<SVGSVGElement>): React.JSX.Element; cardMetadata: { type: string; displayName: string; iconAuthor: string; iconLicense: string; aliases: never[]; testNumbers: string[]; patterns: { full: RegExp[]; prefix: RegExp; }; lengthRange: { min: number; max: number; }; formatPattern: number[]; issuingCountries: string[]; }; }; export { Mastercard as M };