router
router copied to clipboard
When using createLink(), activeProps type should allow component props
Describe the bug
TS error: Object literal may only specify known properties, and 'selected' does not exist in type 'AnchorHTMLAttributes<HTMLAnchorElement> | (() => AnchorHTMLAttributes<HTMLAnchorElement>)'.
Beside, no className should be provided to component to make this function completely agnostic.
Your Example Website or App
https://stackblitz.com/edit/github-ayifmj?file=src%2Fmain.tsx,src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
Click on the stackblitz link and notice the TS error.
Expected behavior
No TS error.
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
No response