-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
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 #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
Steps to Reproduce the Bug or Issue
- See the third link does not have the disabled style
- See the console does not log the disabled prop
Expected behavior
- I expect the
_asChildcomponent to have access to all props
Screenshots or Videos
No response
Platform
- OS: Any
- Browser: Any
- Version: 1.31.3
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working