Styles Interface#
Defines the customizable CSS properties for various hosted fields.Properties#
| Property | Type | Required | Description |
|---|
cardNumber | CssProperties | β No | Defines the styles for the card number field. |
cardholderName | CssProperties | β No | Defines the styles for the cardholder name field. |
container | CssProperties | β No | Defines the styles for the container that wraps the hosted fields. |
focus | CssProperties | β No | Defines the styles applied when an input field is focused. |
input | CssProperties | β No | Defines the styles for the input fields. |
invalid | CssProperties | β No | Defines the styles applied when an input field contains an invalid value. |
isSubscription | CssProperties | β No | Defines the styles for the subscription checkbox field. |
label | CssProperties | β No | Defines the styles for field labels. |
valid | CssProperties | β No | Defines the styles applied when an input field contains a valid value. |
Type Definitions#
cardNumber (optional)#
Defines the styles for the card number field.cardholderName (optional)#
Defines the styles for the cardholder name field.container (optional)#
Defines the styles for the container that wraps the hosted fields.focus (optional)#
Defines the styles applied when an input field is focused.input (optional)#
Defines the styles for the input fields.invalid (optional)#
Defines the styles applied when an input field contains an invalid value.isSubscription (optional)#
Defines the styles for the subscription checkbox field.label (optional)#
Defines the styles for field labels.valid (optional)#
Defines the styles applied when an input field contains a valid value.Modified atΒ 2026-03-13 14:08:17