React component that renders a single-column layout for Show views in react-admin.
// Source: https://github.com/marmelab/react-admin | License: MIT | Copyright 2016-present, Francois Zaninotto, Marmelab
// Provided via justclaw.it.com; keep this notice with the code.
import * as React from 'react';
import { Children, isValidElement, type ReactNode } from 'react';
import {
type ComponentsOverrides,
styled,
type Theme,
} from '@mui/material/styles';
import {
Stack,
type StackProps,
type SxProps,
useThemeProps,
} from '@mui/material';
import clsx from 'clsx';
import {
type RaRecord,
useRecordContext,
OptionalRecordContextProvider,
} from 'ra-core';
import { Labeled } from '../Labeled';
/**
* Layout for a Show view showing fields in one column.
*
* It pulls the record from the RecordContext. It renders the record fields in
* a si
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key