[Bug]: TypeScript Errors in SideNav, SideNavItem and SideNavMenuItem Components of @carbon/react #15372
Closed
2 tasks done
Labels
area: typescript
role: dev 🤖
severity: 4
Unrelated to a user task, has a workaround or does not need a workaround
status: waiting for author's response 💬
type: bug 🐛
Package
@carbon/react
Browser
No response
Package version
1.45.0
React version
18.2.0
Description
Missing 'placeholder' Property in SideNav Component:
My current workaround is setting placeholder as undefined:
TypeScript Errors for 'href' Prop in SideNavItem and SideNavMenuItem:
My current workaround is passing the Linkprops as an Object:
Request for Clarification
Could someone clarify whether the 'placeholder' property in the SideNav component is a recent addition or if there's any missing documentation?
Additionally, is there a specific TypeScript configuration needed to address the errors related to 'href' prop recognition in SideNavItem and SideNavMenuItem?
Reproduction/example
https://codesandbox.io/p/github/Yaren-IT/carbon-nextjs-sidenav/main
Steps to reproduce
Run tsc
2023-12-11_20-59-00.mp4
Suggested Severity
Severity 4 = Unrelated to a user task, has a workaround or does not need a workaround.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: