Customization
Fields styling
form.field('#my-text-field-id', {
type: 'text',
name: 'my-text-field',
placeholder: 'placeholder text',
validations: ['required'],
css: {
'color': '#1b1d1f',
'border': 'solid 1px #1b1d1f',
'transition': 'border-color .15s ease-in-out',
'border-radius': '5px',
'padding': '0 10px',
'box-sizing': 'border-box',
'&:focus': {
'border-color': '#11bef5',
},
'&.invalid.touched': {
'color': 'red',
},
'&.valid': {
'color': 'green',
},
'@media (min-width: 420px)': {
'border-color': 'red',
},
'@font-face': {
'font-family': 'PT Mono',
'font-style': 'normal',
'font-weight': '400',
'font-display': 'swap',
'src': 'local("PT Mono"), local("PTMono-Regular") url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")',
'unicode-range': 'U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116'
},
'font-family': '"PT Mono", monospace',
}
});Web Fonts support
Card brand identification
Add custom card brands
Param
Description
Default value
Override default icons
Change text allignment to Right-To-Left in inputs
Last updated

