Create API
API reference docs for the React Create component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { Create } from '@toolpad/core/Crud';
Name | Type | Default | Description |
---|---|---|---|
dataSource | object | - | Server-side data source. |
dataSourceCache | { cache: object, clear: func, get: func, set: func, ttl: number } | - | Cache for the data source. |
initialValues | object | {} | Initial form values. |
localeText | object | - | Locale text for the component. |
onSubmitSuccess | func | - | Callback fired when the form is successfully submitted. |
resetOnSubmit | bool | false | Whether the form fields should reset after the form is submitted. |
The component cannot hold a ref.
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.