@@ -146,7 +146,6 @@ const Badge = React.forwardRef(function Badge(inProps, ref) {
146
146
} ,
147
147
badgeInset : badgeInsetProp = 0 ,
148
148
children,
149
- component = 'span' ,
150
149
size : sizeProp = 'md' ,
151
150
color : colorProp = 'primary' ,
152
151
invisible : invisibleProp = false ,
@@ -190,20 +189,19 @@ const Badge = React.forwardRef(function Badge(inProps, ref) {
190
189
if ( invisible && badgeContentProp === 0 ) {
191
190
displayValue = '' ;
192
191
}
193
- const externalForwardedProps = { ...other , component } ;
194
192
195
193
const [ SlotRoot , rootProps ] = useSlot ( 'root' , {
196
194
ref,
197
195
className : classes . root ,
198
196
elementType : BadgeRoot ,
199
- externalForwardedProps,
197
+ externalForwardedProps : other ,
200
198
ownerState,
201
199
} ) ;
202
200
203
201
const [ SlotBadge , badgeProps ] = useSlot ( 'badge' , {
204
202
className : classes . badge ,
205
203
elementType : BadgeBadge ,
206
- externalForwardedProps,
204
+ externalForwardedProps : other ,
207
205
ownerState,
208
206
} ) ;
209
207
@@ -252,11 +250,6 @@ Badge.propTypes /* remove-proptypes */ = {
252
250
PropTypes . oneOf ( [ 'danger' , 'info' , 'neutral' , 'primary' , 'success' , 'warning' ] ) ,
253
251
PropTypes . string ,
254
252
] ) ,
255
- /**
256
- * The component used for the root node.
257
- * Either a string to use a HTML element or a component.
258
- */
259
- component : PropTypes . elementType ,
260
253
/**
261
254
* If `true`, the badge is invisible.
262
255
* @default false
0 commit comments