diff --git a/packages/ra-ui-materialui/src/Labeled.stories.tsx b/packages/ra-ui-materialui/src/Labeled.stories.tsx
index ec261588b42..2719ce865a4 100644
--- a/packages/ra-ui-materialui/src/Labeled.stories.tsx
+++ b/packages/ra-ui-materialui/src/Labeled.stories.tsx
@@ -2,6 +2,7 @@ import * as React from 'react';
import { RecordContextProvider, ResourceContext } from 'ra-core';
import { TextField } from './field';
import { Labeled } from './Labeled';
+import { Box, Stack } from '@mui/material';
export default { title: 'ra-ui-materialui/detail/Labeled' };
@@ -71,3 +72,31 @@ export const NoDoubleLabel = () => (
);
+
+export const FullWidth = () => (
+
+
+
+
+
+
+
+
+
+
+
+);
+
+export const FullWidthNoLabel = () => (
+
+
+
+
+
+
+
+
+
+
+
+);
diff --git a/packages/ra-ui-materialui/src/Labeled.tsx b/packages/ra-ui-materialui/src/Labeled.tsx
index c49029df4c3..0dae95c0e1d 100644
--- a/packages/ra-ui-materialui/src/Labeled.tsx
+++ b/packages/ra-ui-materialui/src/Labeled.tsx
@@ -31,22 +31,22 @@ export const Labeled = ({
resource,
source,
...rest
-}: LabeledProps) =>
- label !== false &&
- children.props.label !== false &&
- typeof children.type !== 'string' &&
- // @ts-ignore
- children.type?.displayName !== 'Labeled' &&
- // @ts-ignore
- children.type?.displayName !== 'Labeled' ? (
-
+}: LabeledProps) => (
+
+ {label !== false &&
+ children.props.label !== false &&
+ typeof children.type !== 'string' &&
+ // @ts-ignore
+ children.type?.displayName !== 'Labeled' &&
+ // @ts-ignore
+ children.type?.displayName !== 'Labeled' ? (
- {children}
-
- ) : (
- {children}
- );
+ ) : null}
+ {children}
+
+);
Labeled.displayName = 'Labeled';