Skip to main content

Custom Schema

In this guide, we’ll cover some of the most commonly used custom schemas. For more information:

Datepicker

Properties that can be used in Datepicker schema are:

  "datepicker1": {
"type": "datepicker",
"styles": {
"borderRadius": 5,
"disabled": false,
"visibility": "true"
},
"value": "09/09/2025",
"disabledDates": ["08/09/2025"],
"enableTime": true,
"format": "DD/MM/YYYY",
"label": "Date of Birth"
}
KeyDescriptionExpected Value
typeSpecifies the type of component.datepicker
stylesSpecifies the styles of the component.Object that will contain the styles of the component like borderRadius, disabled, visibility, etc.
borderRadiusSpecifies the border radius of the component.Numeric value like 5, 10, 20 etc.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
valueSpecifies the default date of the datepicker.Date in correct format.
disabledDatesSpecifies the dates that you want to disable.Dates in an array, in the correct format.
enableTimeSpecifies whether to enable time or not.Set true to enable time or false to disable it.
formatSpecifies the format of the date.'DD/MM/YYYY'
labelSpecifies the label of the component.Any string value.

Number Input

"numberInput1": {
"type": "number",
"styles": {
"backgroundColor": "#f6f5ff",
"borderRadius": 3,
"textColor": "#025aa3",
"borderColor": "blue",
"disabled": false,
"visibility": "true"
},
"value": 10,
"maxValue": 12,
"minValue": 6,
"placeholder": "Enter a Number",
"label": "Number Input"
}
Key
Description
Expected Value
typeSpecifies the type of component.'number'
stylesSpecifies the styles of the component.Object that will contain the styles of the component like backgroundColor, borderRadius, textColor, borderColor, disabled, visibility etc.
backgroundColorSpecifies the background color of the component.Color name or Hex color code.
borderRadiusSpecifies the border radius of the component.Numeric value like 5, 10, 20 etc.
textColorSpecifies the text color of the component.Color name or Hex color code.
borderColorSpecifies the border color of the component.Color name or Hex color code.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
valueSpecifies the default value of the number input.Numeric value
maxValueSpecifies the maximum value of the number input.Numeric value
minValueSpecifies the minimum value of the number input.Numeric value
placeholderSpecifies the placeholder text of the number input.Any string value
labelSpecifies the label of the component.Any string value

Password

"passwordInput1": {
"type": "password",
"styles": {
"backgroundColor": "#f6f5ff",
"borderRadius": 5,
"disabled": false,
"visibility": "true"
},
"validation": {
"maxLength": 9,
"minLength": 5,
"regex": "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$"
},
"placeholder": "Enter Password",
"label": "Password"
}
Key
Description
Expected Value
typeSpecifies the type of component.password
stylesSpecifies the styles of the component.Object that will contain the styles of the component like backgroundColor, borderRadius, disabled, visibility etc.
backgroundColorSpecifies the background color of the component.Color name or Hex color code.
borderRadiusSpecifies the border radius of the component.Numeric value like 10.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
validationSpecifies validation rules for the password.Object containing maxLength, minLength, and regex properties.
maxLengthSpecifies the maximum length of the password.Numeric value like 9.
minLengthSpecifies the minimum length of the password.Numeric value like 5.
regexSpecifies the regular expression for password validation.Regular expression pattern like '^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$'
placeholderSpecifies the placeholder text of the password input.Any string value like 'Enter a password'.
labelSpecifies the label of the component.Any string value.

Checkbox

"checkbox1": {
"type": "checkbox",
"styles": {
"checkboxColor": "#025aa3",
"disabled": false,
"textColor": "#025aa3",
"visibility": "true"
},
"value": false,
"label": "Checkbox"
}
Key
Description
Expected Value
typeSpecifies the type of component.checkbox
stylesSpecifies the styles of the component.Object that will contain the styles of the component like checkboxColor, disabled, textColor, visibility, etc.
checkboxColorSpecifies the color of the checkbox.Color name or Hex color code.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
textColorSpecifies the text color of the component.Color name or Hex color code.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
valueSpecifies the default value of the checkbox.Boolean value (true or false).
labelSpecifies the label of the component.Any string value like 'Accept T&C'.

Toggle

"toggleswitch1": {
"type": "toggle",
"styles": {
"textColor": "#025aa3",
"disabled": false,
"visibility": "true",
"toggleSwitchColor": "#025aa3"
},
"value": true,
"label": "Toggle switch"
}
Key
Description
Expected Value
typeSpecifies the type of component.toggle
stylesSpecifies the styles of the component.Object that will contain the styles of the component like textColor, disabled, visibility, toggleSwitchColor etc.
textColorSpecifies the text color of the component.Color name or Hex color code.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
toggleSwitchColorSpecifies the color of the toggle switch.Color name or Hex color code.
valueSpecifies the default value of the toggle switch.Boolean value (true or false)
labelSpecifies the label of the component.Any string value.

Text Area

"textArea1": {
"type": "textarea",
"styles": {
"disabled": false,
"visibility": "true",
"borderRadius": 5
},
"value": "This is a text area",
"placeholder": "Enter Text Here",
"label": "Text Area"
}
Key
Description
Expected Value
typeSpecifies the type of component.textarea
stylesSpecifies the styles of the component.Object that will contain the styles of the component like disabled, visibility, borderRadius, etc.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
borderRadiusSpecifies the border radius of the component.Numeric value.
valueSpecifies the default value of the text area.String value.
placeholderSpecifies the placeholder text of the text area.String value.
labelSpecifies the label of the component.String value.

Date Range Picker

"daterangepicker1": {
"type": "daterangepicker",
"styles": {
"disabled": true,
"visibility": "true",
"borderRadius": 5
},
"defaultEndDate": "12/04/2022",
"defaultStartDate": "1/04/2022",
"format": "DD/MM/YYYY",
"label": "Select a Date Range"
}
Key
Description
Expected Value
typeSpecifies the type of component.daterangepicker
stylesSpecifies the styles of the component.Object that will contain the styles of the component like disabled, visibility, borderRadius, etc.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
borderRadiusSpecifies the border radius of the component.Numeric value.
defaultEndDateSpecifies the default end date.Date in the correct format.
defaultStartDateSpecifies the default start date.Date in the correct format.
formatSpecifies the format of the date.'DD/MM/YYYY'
labelSpecifies the label of the component.String value.

Multiselect

"multiselect1": {
"type": "multiselect",
"styles": {
"disabled": false,
"visibility": "true",
"borderRadius": 5
},
"displayValues": ["one", "two", "three"],
"label": "Select Options of Your Choice",
"value": [2, 3],
"values": [1, 2, 3],
"showAllOption": true
}
Key
Description
Expected Value
typeSpecifies the type of component.multiselect
stylesSpecifies the styles of the component.Object that will contain the styles of the component like disabled, visibility, borderRadius etc.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
borderRadiusSpecifies the border radius of the component.Numeric value.
displayValuesSpecifies the value for option labels in an array format.Array of strings like ["one", "two", "three"].
labelSpecifies the label of the component.String value.
valueSpecifies the default value(s) in an array.Array of values like [2, 3].
valuesSpecifies the values in an array.Array of values like [1, 2, 3].
showAllOptionSpecifies whether to show the 'All' option in the component or not.Set true to show the 'All' option or false to hide it.

Star Rating

"starRating1": {
"type": "starrating",
"styles": {
"disabled": false,
"visibility": "true",
"textColor": "gold",
"labelColor": "#025aa3"
},
"allowHalfStar": true,
"defaultSelected": 3.5,
"maxRating": 5,
"tooltips": ["one", "two", "three", "four"],
"label": "Select a Rating"
}
Key
Description
Expected Value
typeSpecifies the type of component.starrating
stylesSpecifies the styles of the component.Object that will contain the styles of the component like disabled, visibility, textColor, labelColor etc.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
textColorSpecifies the color of the stars.Color name or Hex color code.
labelColorSpecifies the color of the label.Color name or Hex color code.
allowHalfStarSpecifies whether to allow selection of half star rating or not.Set true to allow half-star ratings or false to disable it.
defaultSelectedSpecifies the default value of the star rating.Numeric value
maxRatingSpecifies the maximum rating.Numeric value
tooltipsSpecifies the tooltips for each star in an array.Array of strings like ['one', 'two', 'three', 'four'].
labelSpecifies the label of the component.String value.

File Picker

"filepicker1": {
"type": "filepicker",
"styles": {
"visibility": "true",
"borderRadius": 10
},
"enableMultiple": true,
"fileType": "*/*",
"instructionText": "Click here to select files",
"maxFileCount": 5,
"maxSize": 6000000,
"minSize": 25,
"parseContent": true,
"parseFileType": "csv",
"label": "Select a File"
}
Key
Description
Expected Value
typeSpecifies the type of component.filepicker
stylesSpecifies the styles of the component.Object that will contain the styles of the component like visibility, borderRadius etc.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
borderRadiusSpecifies the border radius of the component.Numeric value
enableMultipleSpecifies whether to enable multiple file selection or not.Set true to enable multiple file selection or false to disable it.
fileTypeSpecifies the mime file type.Mime types like '/' (accepts all file types).
instructionTextSpecifies the instruction text of the file picker.String value
maxFileCountSpecifies the maximum number of files that can be selected.Numeric value
maxSizeSpecifies the maximum size of the file in bytes.Numeric value like 6000000 (6 MB).
minSizeSpecifies the minimum size of the file in bytes.Numeric value like 25.
parseContentSpecifies whether to parse the content of the file or not.Set true to parse the content or false to disable it.
parseFileTypeSpecifies the file type to parse (e.g., csv, text, xlsx).File type
labelSpecifies the label of the component.String value.

Text Input

"textinput1": {
"type": "textinput",
"value": "John",
"placeholder": "Enter the Name Here",
"label": "First Name",
"validation": {
"maxLength": 6
},
"styles": {
"backgroundColor": "#f6f5ff",
"borderRadius": 5,
"errorTextColor": "#025aa3",
"disabled": false,
"visibility": false,
"textColor": "#025aa3"
}
}
Key
Description
Expected Value
typeSpecifies the type of component.textinput
valueSpecifies the default value of the text input.String value
placeholderSpecifies the placeholder text of the text input.String value
labelSpecifies the label of the component.String value
validationSpecifies validation rules for the text input.Object containing maxLength property.
maxLengthSpecifies the maximum length validation of the text input.Numeric value
stylesSpecifies the styles of the component.Object that will contain the styles of the component like backgroundColor, borderRadius, errorTextColor, disabled, visibility, textColor etc.
backgroundColorSpecifies the background color of the component.Color name or Hex color code.
borderRadiusSpecifies the border radius of the component.Numeric value
errorTextColorSpecifies the color of the error text.Color name or Hex color code.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set false to hide the component or true to show it.
textColorSpecifies the text color of the component.Color name or Hex color code.
"dropdown1": {
"type": "dropdown",
"displayValues": ["One", "Two", "Three"],
"values": [1, 2, 3],
"loading": false,
"value": 2,
"label": "Select a Number",
"styles": {
"disabled": false,
"visibility": "true",
"borderRadius": 5,
"justifyContent": "start"
}
}
Key
Description
Expected Value
typeSpecifies the type of component.dropdown
displayValuesSpecifies the value for option labels in an array format.Array of values like [1, 2, 3].
valuesSpecifies the option labels in an array.Array of strings like ['one', 'two', 'three'].
loadingSpecifies whether to show the loading state or not.Set true to show the loading state or false to hide it.
valueSpecifies the default selected value of the dropdown.Any value from the values array.
labelSpecifies the label of the component.String value
stylesSpecifies the styles of the component.Object that will contain the styles of the component like disabled, visibility, borderRadius, justifyContent etc.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
borderRadiusSpecifies the border radius of the component.Numeric value
justifyContentSpecifies the alignment of the dropdown options.start, center, or end

Button

"button1": {
"type": "button",
"value": "Submit",
"label": "",
"styles": {
"backgroundColor": "#3A433B",
"textColor": "white",
"borderRadius": 5,
"borderColor": "#595959",
"loaderColor": "gray",
"visibility": "true",
"disabled": true
}
}
Key
Description
Expected Value
typeSpecifies the type of component.button
valueSpecifies the button text.String value
labelSpecifies the label of the component.String value
stylesSpecifies the styles of the component.Object that will contain the styles of the component like backgroundColor, textColor, borderRadius, borderColor, loaderColor, visibility, disabled etc.
backgroundColorSpecifies the background color of the button.Color name or Hex color code.
textColorSpecifies the text color of the button.Color name or Hex color code.
borderRadiusSpecifies the border radius of the button.Numeric value
borderColorSpecifies the border color of the button.Color name or Hex color code.
loaderColorSpecifies the color of the loader on the button.Color name or Hex color code.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.

Text

"text1": {
"type": "text",
"value": "This is a text component",
"label": "",
"styles": {
"backgroundColor": "#f6f5ff",
"textColor": "#025aa3",
"fontSize": 12,
"fontWeight": 500
}
}
Key
Description
Expected Value
typeSpecifies the type of component.text
valueSpecifies the value of the text component.String value
labelSpecifies the label of the component.String value
stylesSpecifies the styles of the component.Object that will contain the styles of the component like backgroundColor, textColor, fontSize, fontWeight etc.
backgroundColorSpecifies the background color of the text.Color name or Hex color code.
textColorSpecifies the text color of the text.Color name or Hex color code.
fontSizeSpecifies the font size of the text.Numeric value
fontWeightSpecifies the font weight of the text.Numeric value

Radio

"radioButton1": {
"type": "radio",
"styles": {
"textColor": "black",
"disabled": false,
"visibility": "true"
},
"displayValues": ["Yes", "No"],
"label": "Radio Buttons",
"value": 1,
"values": [1, 2]
}
Key
Description
Expected Value
typeSpecifies the type of component.radio
stylesSpecifies the styles of the component.Object that will contain the styles of the component like textColor, disabled, visibility, etc.
textColorSpecifies the text color of the radio options.Color name or Hex color code.
disabledSpecifies whether to disable the component or not.Set true to disable the component or false to enable it.
visibilitySpecifies whether to show the component or not.Set true to show the component or false to hide it.
displayValuesSpecifies the value for labels in an array format.Array of strings like ['option 1', 'option 2', 'option 3'].
labelSpecifies the label of the component.String value
valueSpecifies the default selected value of the radio button.Any value from the values array.
valuesSpecifies the values in an array.Array of values like [1, 2, 3].