BillingDetailsElementInitConfig

BillingDetailsElementInitConfig object

Configuration options for initializing the BillingDetailsElement, including appearance customization and element reference.

PropertyTypeRequiredDescription
refany | stringrequiredReference to the HTML element where the payment methods selector will be mounted.
appearanceobjectoptionalAppearance customization for the billing details form.
▶ 4 properties
PropertyTypeRequiredDescription
settingsobjectoptionalComponent-level behavioural configuration that is not expressible through CSS.
stylesobjectoptionalPer-component CSS overrides keyed by selector name.
▶ 1 property
PropertyTypeRequiredDescription
BillingDetailsFormStylesoptional
theme"light" | "dark"optionalBuilt-in theme to use as a baseline. Explicit variables, styles, and settings override theme defaults.
variablesobjectoptionalGlobal design tokens exposed as CSS custom properties on the element container.
▶ 16 properties
PropertyTypeRequiredDescription
borderRadiusstring | numberoptionalGlobal corner radius applied to inputs, buttons, and cards.
boxShadowstringoptionalDefault box shadow.
colorBackgroundPrimarystringoptionalPrimary surface/background colour.
colorBackgroundSecondarystringoptionalSecondary surface colour used for cards and grouped areas.
colorErrorstringoptionalColour applied to error states and validation messages.
colorFocusedstringoptionalColour applied to focused input borders and focus rings.
colorLabelstringoptionalDefault colour for input labels.
colorOutlinestringoptionalOutline/border colour for inputs.
colorPlaceholderstringoptionalColour for input placeholder text.
colorPrimarystringoptionalPrimary brand accent colour used for buttons and interactive elements.
colorSelectedstringoptionalColour applied to selected/active elements.
colorTextstringoptionalDefault text colour.
fontFamilystringoptionalFont stack for all text.
fontSizeBasestringoptionalBase font size.
paddingHorizontalInputstring | numberoptionalHorizontal padding inside input fields.
spacingUnitstring | numberoptionalBase spacing unit used for consistent margins and gaps between elements.
On this page: