Skip to content

Commit fda5c11

Browse files
authored
Merge pull request #420 from pawelkoniecznybh/change-as-type
fix(CBadge): update propTypes to use ElementType for 'as' prop
2 parents cde36ae + 055cb5c commit fda5c11

File tree

1 file changed

+1
-1
lines changed
  • packages/coreui-react/src/components/badge

1 file changed

+1
-1
lines changed

packages/coreui-react/src/components/badge/CBadge.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const CBadge: PolymorphicRefForwardingComponent<'span', CBadgeProps> = fo
9696
)
9797

9898
CBadge.propTypes = {
99-
as: PropTypes.string,
99+
as: PropTypes.ElementType,
100100
children: PropTypes.node,
101101
className: PropTypes.string,
102102
color: colorPropType,

0 commit comments

Comments
 (0)