Skip to content

Commit e590744

Browse files
committed
update breadcrumbs
1 parent 999f9fa commit e590744

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

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

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,38 +82,35 @@ const Breadcrumbs = React.forwardRef(function Breadcrumbs(inProps, ref) {
8282
name: 'JoyBreadcrumbs',
8383
});
8484

85-
const { children, className, component = 'nav', size = 'md', separator = '/', ...other } = props;
85+
const { children, className, size = 'md', separator = '/', ...other } = props;
8686

8787
const ownerState = {
8888
...props,
89-
component,
9089
separator,
9190
size,
9291
};
9392

9493
const classes = useUtilityClasses(ownerState);
9594

96-
const externalForwardedProps = { ...other, component };
97-
9895
const [SlotRoot, rootProps] = useSlot('root', {
9996
ref,
10097
className: clsx(classes.root, className),
10198
elementType: BreadcrumbsRoot,
102-
externalForwardedProps,
99+
externalForwardedProps: other,
103100
ownerState,
104101
});
105102

106103
const [SlotOl, olProps] = useSlot('ol', {
107104
className: classes.ol,
108105
elementType: BreadcrumbsOl,
109-
externalForwardedProps,
106+
externalForwardedProps: other,
110107
ownerState,
111108
});
112109

113110
const [SlotLi, liProps] = useSlot('li', {
114111
className: classes.li,
115112
elementType: BreadcrumbsLi,
116-
externalForwardedProps,
113+
externalForwardedProps: other,
117114
ownerState,
118115
});
119116

@@ -123,7 +120,7 @@ const Breadcrumbs = React.forwardRef(function Breadcrumbs(inProps, ref) {
123120
},
124121
className: classes.separator,
125122
elementType: BreadcrumbsSeparator,
126-
externalForwardedProps,
123+
externalForwardedProps: other,
127124
ownerState,
128125
});
129126

@@ -171,11 +168,6 @@ Breadcrumbs.propTypes /* remove-proptypes */ = {
171168
* @ignore
172169
*/
173170
className: PropTypes.string,
174-
/**
175-
* The component used for the root node.
176-
* Either a string to use a HTML element or a component.
177-
*/
178-
component: PropTypes.elementType,
179171
/**
180172
* Custom separator node.
181173
* @default '/'

0 commit comments

Comments
 (0)