@@ -82,38 +82,35 @@ const Breadcrumbs = React.forwardRef(function Breadcrumbs(inProps, ref) {
82
82
name : 'JoyBreadcrumbs' ,
83
83
} ) ;
84
84
85
- const { children, className, component = 'nav' , size = 'md' , separator = '/' , ...other } = props ;
85
+ const { children, className, size = 'md' , separator = '/' , ...other } = props ;
86
86
87
87
const ownerState = {
88
88
...props ,
89
- component,
90
89
separator,
91
90
size,
92
91
} ;
93
92
94
93
const classes = useUtilityClasses ( ownerState ) ;
95
94
96
- const externalForwardedProps = { ...other , component } ;
97
-
98
95
const [ SlotRoot , rootProps ] = useSlot ( 'root' , {
99
96
ref,
100
97
className : clsx ( classes . root , className ) ,
101
98
elementType : BreadcrumbsRoot ,
102
- externalForwardedProps,
99
+ externalForwardedProps : other ,
103
100
ownerState,
104
101
} ) ;
105
102
106
103
const [ SlotOl , olProps ] = useSlot ( 'ol' , {
107
104
className : classes . ol ,
108
105
elementType : BreadcrumbsOl ,
109
- externalForwardedProps,
106
+ externalForwardedProps : other ,
110
107
ownerState,
111
108
} ) ;
112
109
113
110
const [ SlotLi , liProps ] = useSlot ( 'li' , {
114
111
className : classes . li ,
115
112
elementType : BreadcrumbsLi ,
116
- externalForwardedProps,
113
+ externalForwardedProps : other ,
117
114
ownerState,
118
115
} ) ;
119
116
@@ -123,7 +120,7 @@ const Breadcrumbs = React.forwardRef(function Breadcrumbs(inProps, ref) {
123
120
} ,
124
121
className : classes . separator ,
125
122
elementType : BreadcrumbsSeparator ,
126
- externalForwardedProps,
123
+ externalForwardedProps : other ,
127
124
ownerState,
128
125
} ) ;
129
126
@@ -171,11 +168,6 @@ Breadcrumbs.propTypes /* remove-proptypes */ = {
171
168
* @ignore
172
169
*/
173
170
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 ,
179
171
/**
180
172
* Custom separator node.
181
173
* @default '/'
0 commit comments