diff --git a/packages/mui-lab/src/Timeline/Timeline.tsx b/packages/mui-lab/src/Timeline/Timeline.tsx index 2df1eb6b2e7829..f5c7689f857c0d 100644 --- a/packages/mui-lab/src/Timeline/Timeline.tsx +++ b/packages/mui-lab/src/Timeline/Timeline.tsx @@ -21,8 +21,8 @@ const useUtilityClasses = (ownerState: OwnerState) => { return composeClasses(slots, getTimelineUtilityClass, classes); }; -const TimelineRoot = styled('ul' as const, { - name: 'MuiTimeline' as const, +const TimelineRoot = styled('ul', { + name: 'MuiTimeline', slot: 'Root', overridesResolver: (props, styles) => { const { ownerState } = props; diff --git a/packages/mui-lab/src/Timeline/Timeline.types.ts b/packages/mui-lab/src/Timeline/Timeline.types.ts index 01e9cbf6df0176..22207ea2316e96 100644 --- a/packages/mui-lab/src/Timeline/Timeline.types.ts +++ b/packages/mui-lab/src/Timeline/Timeline.types.ts @@ -4,7 +4,7 @@ import { Theme } from '@mui/material/styles'; import { SxProps } from '@mui/system'; import { TimelineClasses } from './timelineClasses'; -export interface TimelineProps extends StandardProps> { +export interface TimelineProps extends StandardProps> { /** * The position where the TimelineContent should appear relative to the time axis. * @default 'right'