Skip to content

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)
Discussion options

You must be logged in to vote

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>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eslksw
Comment options

Answer selected by eslksw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants