Skip to content
Skip to contentSkip 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.

pageTitlestring-

The title of the page.

resetOnSubmitboolfalse

Whether the form fields should reset after the form is submitted.

slotProps{ form?: { checkbox?: object, datePicker?: object, dateTimePicker?: object, select?: object, textField?: object }, pageContainer?: object }{}

The props used for each slot inside.

slots{ form?: { checkbox?: elementType, datePicker?: elementType, dateTimePicker?: elementType, select?: elementType, textField?: elementType }, pageContainer?: elementType }{}

The components used for each slot inside.

See Slots API below for more details.

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.