Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 055cb5c

Browse filesBrowse files
fix(CBadge): update propTypes to use ElementType for 'as' prop
1 parent cde36ae commit 055cb5c
Copy full SHA for 055cb5c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
  • packages/coreui-react/src/components/badge
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: packages/coreui-react/src/components/badge/CBadge.tsx
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.