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';
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. |
localeText | object | - | Locale text for the component. |
onDelete | func | - | Callback fired when the item is successfully deleted. |
onEditClick | func | - | Callback fired when the "Edit" button is clicked. |
pageTitle | string | - | 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.