Skip to content

Commit 307231c

Browse files
committed
[ChipDelete, LinearProgress] Keep API doc for component
1 parent d0ac59c commit 307231c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/mui-joy/src/ChipDelete/ChipDelete.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const ChipDelete = React.forwardRef(function ChipDelete(inProps, ref) {
7070
});
7171

7272
const {
73+
component,
7374
children,
7475
variant: variantProp,
7576
color: colorProp,
@@ -104,7 +105,7 @@ const ChipDelete = React.forwardRef(function ChipDelete(inProps, ref) {
104105
ref,
105106
className: classes.root,
106107
elementType: ChipDeleteRoot,
107-
externalForwardedProps: other,
108+
externalForwardedProps: { ...other, component },
108109
ownerState,
109110
getSlotProps: getRootProps,
110111
});

packages/mui-joy/src/LinearProgress/LinearProgress.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const LinearProgress = React.forwardRef(function LinearProgress(inProps, ref) {
145145
});
146146

147147
const {
148+
component,
148149
children,
149150
className,
150151
color = 'primary',
@@ -173,7 +174,7 @@ const LinearProgress = React.forwardRef(function LinearProgress(inProps, ref) {
173174
ref,
174175
className: clsx(classes.root, className),
175176
elementType: LinearProgressRoot,
176-
externalForwardedProps: other,
177+
externalForwardedProps: { ...other, component },
177178
ownerState,
178179
additionalProps: {
179180
role: 'progressbar',

0 commit comments

Comments
 (0)