ExpDateInput
A text input field for expiration date for the credit card inputs
The ExpDateInput
field is used during a payment flow to type in the expiry date. Below is the simplest example, only the input field with the numbers visible to the user and a descriptive calendar icon on the left.
Basic usage
In most use-cases the it is also useful to include a label for more information about the input.
Labels usage
By default, the ExpDateInput
displays a calendar icon on the left side. Hide this by using the hideIcon
-prop.
Hidden icon usage
The expiry date input also provides error handling.