I would like to use a MUI Link component as an Inertia.js Link. Is this possible? #2254
Answered
by
RobertBoes
eslksw
asked this question in
Help (React)
-
In order to keep design consistent and to avoid redundant styling specs, I wanted to use Inertia.js Link's |
Beta Was this translation helpful? Give feedback.
Answered by
RobertBoes
Feb 27, 2025
Replies: 1 comment 1 reply
-
Wouldn't this approach work https://mui.com/material-ui/integrations/routing/#component-prop ? So then you'd use it along these lines: import Link from '@mui/material/Link';
import { Link as InertiaLink } from '@inertiajs/react';
<Link component={InertiaLink} href="/contact">
Contact
</Link> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
eslksw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wouldn't this approach work https://mui.com/material-ui/integrations/routing/#component-prop ?
So then you'd use it along these lines: