Skip to content
Skip to content

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';

Props

NameTypeDefaultDescription
dataSourceobject-

Server-side data source.

dataSourceCache{ cache: object, clear: func, get: func, set: func, ttl: number }-

Cache for the data source.

initialValuesobject{}

Initial form values.

localeTextobject-

Locale text for the component.

onSubmitSuccessfunc-

Callback fired when the form is successfully submitted.

resetOnSubmitboolfalse

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.