Form
API docs for the Toolpad Studio Form component.
A form component.
Properties
Name | Type | Default | Description |
---|---|---|---|
children | element | The form content. | |
value | object | {} | The value that is controlled by this form. |
onSubmit | event | Add logic to be executed when the user submits the form. | |
formControlsAlign | string | "end" | Form controls alignment. |
formControlsFullWidth | boolean | false | Whether the form controls should occupy all available horizontal space. |
submitButtonText | string | "Submit" | Submit button text. |
hasResetButton | boolean | false | Show button to reset form values. |
sx | object | The sx prop is used for defining custom styles that have access to the theme. All MUI System properties are available via the sx prop. In addition, the sx prop allows you to specify any other CSS rules you may need. |