Router Integration With Tailwind Catalyst Link Component
I am struggling to get typescript link component working properly with the Tanstack router (I am a beginner when it comes to typescript).
I have updated link.tsx to the following
But in any file that uses the Link component (eg. avatar) there is a typescript error on Headless.Button (see attachment).
I also updated the Avatar file to reference "to" instead of href as is convention with tanstack router.
Minimal reproduction: https://stackblitz.com/~/github.com/kpwn243/tanstack-catalyst?file=src/components/ui/avatar.tsx&view=editor
I have updated link.tsx to the following
But in any file that uses the Link component (eg. avatar) there is a typescript error on Headless.Button (see attachment).
I also updated the Avatar file to reference "to" instead of href as is convention with tanstack router.
Minimal reproduction: https://stackblitz.com/~/github.com/kpwn243/tanstack-catalyst?file=src/components/ui/avatar.tsx&view=editor