- Below is a list of the available component inputs
Input | Type | Description |
---|---|---|
formFields | FormField | An array of form field objects based on the FormField model |
showSubmitButton | boolean |
A boolean value to indicate whether or not to show the component's default submit button
default - true |
submitButtonText | string |
The default submit button text
default - 'Submit' |
showLabels | boolean |
A boolean value to indicate whether or not to show form input labels
default - true |
showIcons | boolean |
A boolean value to indicate whether or not to show icons next to form inputs
default - true |
iconColor | string |
The color of the icons that appear next to the form inputs, these are the colors set in the app's ~theme/variables.scss file i.e primary. secondary etc
default - primary |
showCardIcons | boolean |
A boolean value to indicate whether or not to show credit card icons next to the credit card form input
Only applicable if field with formFieldType of credit-card is used default - true |
returnCreditCardType (in-development) | boolean |
A boolean value to indicate whether or not to return the credit-card type i.e mastercard, visa, amex, on formSubmission
Only applicable if field with formFieldType of credit-card is used default - true |
submitButtonColor | string |
The color of the default submit button
default - primary Only applicable if showSubmitButton is set to true |