This component is used to input card details in a slim card input form. The card input form consists of the following fields:
- Card Number
- Expiry Date
- CVV
- Card Holder Name
Parameters
Parameter | Description |
---|---|
textSize |
(optional): The size of the text in the card input. Default value is 16.sp. |
textFontWeight |
(optional): The font weight of the text in the card input. Default value is ComponentFontWeight.NORMAL. |
showCardHolderName |
(optional): A boolean indicating whether the cardholder’s name should be shown. Default value is true. |
cardHolderName |
(optional): The initial name of the card holder. Default value is an empty string. This is required if showCardHolderName is set to false. |
modifier |
(optional): The modifier to apply to this layout node. |
For other uses beside Compose you can use the CardInputSlimStyleState
to define the styli