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-02-02 22:10:25