-
Notifications
You must be signed in to change notification settings - Fork 0
Styling the Inputs
Tom Kay edited this page Jun 10, 2020
·
1 revision
You can apply custom styles to the inputs using ChargeHive.setStyle(...)
This method takes a nested object which specifies the styles that should be applied.
{
FRAME_NAME: STYLE_DEF,
"all": STYLE_DEF,
"fontCss": FONT_URLS,
}Name of a specific frame included on the page (will match the data-chargehive attribute)
{
"default": STYLE_PROPS,
"empty": STYLE_PROPS,
"invalid": STYLE_PROPS,
"complete": STYLE_PROPS,
}{
"color": STRING,
"fontFamily": STRING,
"fontSize": STRING,
"fontStyle": STRING,
"fontWeight": STRING,
"fontSmoothing": STRING,
"lineHeight": STRING,
"letterSpacing": STRING,
"textAlign": STRING,
"padding": STRING,
"textDecoration": STRING,
"textShadow": STRING,
"textTransform": STRING,
"opacity": STRING,
":hover": STYLE_PROPS,
":focus": STYLE_PROPS,
":disabled": STYLE_PROPS,
"::placeholder": STYLE_PROPS,
"::selection": STYLE_PROPS,
}An array of font urls hosted on the following urls: