The _asChild prop of Link as well as the createLink function that uses it look like the intended way to build wrapped links, e.g. for use in design systems (see https://github.com/TanStack/router/discussions/721 for a discussion that shows that a lot of folks want to do this).
However, both of them remove the disabled prop which is used in some design systems to style the resulting link. I am not sure if any other props are similarly removed, but the _asChild component should probably have access to all props that are passed in.
Describe the bug
The
_asChild
prop ofLink
as well as thecreateLink
function that uses it look like the intended way to build wrapped links, e.g. for use in design systems (see https://github.com/TanStack/router/discussions/721 for a discussion that shows that a lot of folks want to do this).However, both of them remove the
disabled
prop which is used in some design systems to style the resulting link. I am not sure if any other props are similarly removed, but the_asChild
component should probably have access to all props that are passed in.Your Example Website or App
https://stackblitz.com/edit/github-mrrmdd?file=src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
_asChild
component to have access to all propsScreenshots or Videos
No response
Platform
Additional context
No response