[bug]: Components using as
prop do not have said prop's components inferred
#1401
Labels
Milestone
as
prop do not have said prop's components inferred
#1401
What version of strapi-design-system are you using?
What's Wrong?
When you use the
as
prop on something likeNavLink
to change it to use the react-routerLink
component the props are not correctly inferred:so
to
claims to not exist, even though it should.To Reproduce
remove the TS directive from this link in the main repo to see the issue:
https://github.com/strapi/strapi/blob/main/packages/core/admin/admin/src/components/LeftMenu.tsx#L185
Expected Behaviour
The props from the ElementType passed as the
as
prop should be added to the props of the entire componentThe text was updated successfully, but these errors were encountered: