Skip to content

Commit 9658cf7

Browse files
authored
Move link examples to only Pages Router docs. (#57758)
1 parent f832c56 commit 9658cf7

File tree

1 file changed

+4
-0
lines changed
  • docs/02-app/02-api-reference/01-components

1 file changed

+4
-0
lines changed

docs/02-app/02-api-reference/01-components/link.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: Enable fast client-side navigation with the built-in `next/link` co
55

66
{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
77

8+
<PagesOnly>
9+
810
<details>
911
<summary>Examples</summary>
1012

@@ -13,6 +15,8 @@ description: Enable fast client-side navigation with the built-in `next/link` co
1315

1416
</details>
1517

18+
</PagesOnly>
19+
1620
`<Link>` is a React component that extends the HTML `<a>` element to provide [prefetching](/docs/app/building-your-application/routing/linking-and-navigating#1-prefetching) and client-side navigation between routes. It is the primary way to navigate between routes in Next.js.
1721

1822
<AppOnly>

0 commit comments

Comments
 (0)