Skip to content

Commit

Permalink
[docs] Remove outdated Menu NextLink documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Nov 17, 2022
1 parent 3fd5ae8 commit 9dd3cb2
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions docs/src/docs/core/Menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,36 +68,6 @@ By default, `Menu.Item` renders as button element, to change that set `component

<Demo data={MenuDemos.component} />

## Menu.Item with react-router Link

```tsx
import { Menu } from '@mantine/core';
import { Link } from 'react-router-dom';

function Demo() {
return (
<Menu.Item component={Link} to="/hello">
Hello
</Menu.Item>
);
}
```

## Menu.Item as Next.js Link

```tsx
import { Menu } from '@mantine/core';
import { NextLink } from '@mantine/next';

function Demo() {
return (
<Menu.Item component={NextLink} href="/hello">
Hello
</Menu.Item>
);
}
```

## Custom component as target

<Demo data={MenuDemos.customControl} />
Expand Down

0 comments on commit 9dd3cb2

Please sign in to comment.