Skip to content

Latest commit

 

History

History
170 lines (94 loc) · 4.09 KB

StripeElementCSSProperties.md

File metadata and controls

170 lines (94 loc) · 4.09 KB

@bigcommerce/checkout-sdk / StripeElementCSSProperties

Interface: StripeElementCSSProperties

CSS properties supported by Stripe.js.

Hierarchy

Table of contents

Properties

Properties

backgroundColor

Optional backgroundColor: string

The background-color CSS property.

This property works best with the ::selection pseudo-class. In other cases, consider setting the background color on the element's container instaed.


color

Optional color: string

The color CSS property.


fontFamily

Optional fontFamily: string

The font-family CSS property.


fontSize

Optional fontSize: string

The font-size CSS property.


fontSmoothing

Optional fontSmoothing: string

The font-smoothing CSS property.


fontStyle

Optional fontStyle: string

The font-style CSS property.


fontVariant

Optional fontVariant: string

The font-variant CSS property.


fontWeight

Optional fontWeight: string

The font-weight CSS property.


iconColor

Optional iconColor: string

A custom property, used to set the color of the icons that are rendered in an element.


letterSpacing

Optional letterSpacing: string

The letter-spacing CSS property.


lineHeight

Optional lineHeight: string

The line-height CSS property.

To avoid cursors being rendered inconsistently across browsers, consider using a padding on the element's container instead.


padding

Optional padding: string

The padding CSS property.

Available for the idealBank element. Accepts integer px values.


textAlign

Optional textAlign: string

The text-align CSS property.

Available for the cardNumber, cardExpiry, and cardCvc elements.


textDecoration

Optional textDecoration: string

The text-decoration CSS property.


textShadow

Optional textShadow: string

The text-shadow CSS property.


textTransform

Optional textTransform: string

The text-transform CSS property.