Skip to contentSkip to content

Show API

API reference docs for the React Show component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { Show } 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.

localeTextobject-

Locale text for the component.

onDeletefunc-

Callback fired when the item is successfully deleted.

onEditClickfunc-

Callback fired when the "Edit" button is clicked.

pageTitlestring-

The title of the page.

slotProps{ pageContainer?: object }{}

The props used for each slot inside.

slots{ 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.