[Menu] MenuListProps 'component' prop typescript error when used within Menu component #32872
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: menu
This is the name of the generic UI component, not the React module!
typescript
Duplicates
Latest version
Current behavior 😯
When using Menu component, I want to change the list component HTML element to be a
nav
instead of defaultul
.I can achieve this by providing Menu component with:
This works as expected and it changes the HTML element to
nav
, but I get this typescript error saying that 'component' prop does not exist. I could just suppress this error with@ts-ignore
but I'd like to avoid that.Expected behavior 🤔
No response
Steps to reproduce 🕹
No response
Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: