ValyroUI Русская версия

Credit Card

Bank card: gradient or two-tone, network detected from the number, contactless. Pro · Shop and payments › Payments and wallet

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add credit-card
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { CreditCard } from 'valyro-ui-pro';

Props

PropTypeDefault
number *stringCard number; spaces are added for display.
holderstringName on the card, printed in capitals.
expirystringExpiry as printed: "06/28".
issuerReactNodeBank or company in the top corner: text or a logo.
brandPaymentBrandNetwork mark; detected from the number when omitted.
logoReactNodeOfficial network artwork instead of the built-in mark.
maskedbooleanfalseShows only the last four digits.
variant'gradient' | 'split''gradient'gradient: one finish over the whole card; split: tinted top, dark band with the details. Default gradient.
tone'violet' | 'ocean' | 'midnight' | 'emerald' | 'sunset' | 'silver''violet'Finish of the card. Default violet.
backgroundstringAny CSS background, instead of a tone (an image, a brand gradient).
contactlessbooleantrueContactless symbol in the top corner. Default true.
labelsPartial<CreditCardLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Invoice · Next: Card Input · All Shop and payments