[Bug]: SideNavMenuItem
doesn't have an as
prop although warning indicates it does
#18021
Closed
2 tasks done
Labels
Package
@carbon/react
Browser
No response
Package version
1.67.1
React version
No response
Description
SideNavMenuItem
doesn't have anas
prop, or at least it isn't typed. I want to use areact-router-dom
Link
as the element in the component.Reproduction/example
N/A
Steps to reproduce
This code worked in Carbon v10:
In Carbon v11, I get this warning:
Warning: The `element` prop for `Link` has been deprecated. Please use `as` instead. This will be removed in the next major release. Error Component Stack
This change addresses the warning:
However, that change results in a TypeScript error that says:
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
DataPower
Code of Conduct
The text was updated successfully, but these errors were encountered: