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
Property | Required | Description | Type |
---|---|---|---|
name | Yes | The name of the component (should be "CustomButton") | String |
type | Yes | The type of the button (should be "Submit") | ComponentType |
props | Yes | The properties for the CustomButton | Props |
Props
Property | Required | Description | Type |
---|---|---|---|
label | Yes | The text to display on the button | String |
description | No | Tooltip text for the button | String |
includeDownload | No | Whether to download the data passed to the button when it is clicked | Boolean |
downloadFileName | No | The name of the file to download | String |