Code
name
string
number
string
expiry
string
cvc
string
focused
string ('name', 'number', 'expiry', 'cvc')
namePlaceholder
boolean
accepdCards
boolean
This component should be used together with CreditCardName, CreditCardNumber, CreditCardCVC, CreditCardDate components.
Complement Components
CreditCardName, CreditCardNumber, CreditCardCVC, CreditCardDate
value
string
className
string
id
string
name
string
label
string
info
string
helptext
string
error
boolean
errorMessage
string
disabled
boolean
readOnly
boolean
onBlur
function
onChange
function
onChange
function
These four components work exactly like the TextInput and NumberInput components removing a couple of extra features to delimitate the specific experience to give to the user by using this inputs.
Also the tokens used for these components are the same that we're using for the TextInput and NumberInput components.
How To Use
The main component is CreditCard, which is going to receive through the other CreditCard input components the data to perform the animations and interactions expected.
Example
Live Demo
For detailed code usage documentation, see the Storybooks for each framework below.
React
Last updated