Skip to main content

Custom Button

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

Description

The CustomButton component renders a button with loading state and optional download functionality. It provides a flexible and reusable button solution for various use cases within the application.

Example

{
"name": "CustomButton",
"type": "Submit",
"props": {
"label": "Submit",
"description": "Click to submit the form",
"includeDownload": true,
"downloadFileName": "result"
}
}

Definitions

PropertyRequiredDescriptionType
nameYesThe name of the component (should be "CustomButton")String
typeYesThe type of the button (should be "Submit")ComponentType
propsYesThe properties for the CustomButtonProps

Props

PropertyRequiredDescriptionType
labelYesThe text to display on the buttonString
descriptionNoTooltip text for the buttonString
includeDownloadNoWhether to download the data passed to the button when it is clickedBoolean
downloadFileNameNoThe name of the file to downloadString