Creating a link with Material UI - Add example in doc? #235
Replies: 2 comments 1 reply
-
This continues to be a problem in
@tannerlinsley if I'm getting this right |
Beta Was this translation helpful? Give feedback.
-
See https://tanstack.com/router/latest/docs/framework/react/guide/custom-link#mui-example TanStack RouterTanStack Router supports custom links through the import { createLink, type LinkComponent } from '@tanstack/react-router'
import { Link as MUILink } from '@mui/material'
const CustomLink = createLink(MUILink)
function IndexPage() {
return (
<CustomLink to="/about" search={{ name: 'test' }}>
Link
</CustomLink>
);
} |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using MUI as my components library, and I am trying to make a link.
My code
And somewhere else in my code:
The issue
That work just fine, but I get an warning in the console:
Has anyone encountered and solved the issue?
Documentation suggestion
Once I have a flawless solution, maybe it could be a great addition to the examples section of the doc! (happy to contribute)
Beta Was this translation helpful? Give feedback.
All reactions