Unverified Commit 0e25f8c6 authored by Yomi Ikuru's avatar Yomi Ikuru Committed by GitHub

[Doc] Update inline documentation for next/link (#41871)

## Addresses Issue #41807

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
Co-authored-by: 's avatarYomi Ikuru <abayomi.ikuru@gmail.com>
parent 05d4c9e7
...@@ -78,23 +78,23 @@ type InternalLinkProps = { ...@@ -78,23 +78,23 @@ type InternalLinkProps = {
locale?: string | false locale?: string | false
/** /**
* Enable legacy link behaviour. * Enable legacy link behaviour.
* @defaultValue `true` * @defaultValue `false`
* @see https://github.com/vercel/next.js/commit/489e65ed98544e69b0afd7e0cfc3f9f6c2b803b7 * @see https://github.com/vercel/next.js/commit/489e65ed98544e69b0afd7e0cfc3f9f6c2b803b7
*/ */
legacyBehavior?: boolean legacyBehavior?: boolean
// e: any because as it would otherwise overlap with existing types // e: any because as it would otherwise overlap with existing types
/** /**
* requires experimental.newNextLinkBehavior * Optional event handler for when the mouse pointer is moved onto Link
*/ */
onMouseEnter?: (e: any) => void onMouseEnter?: (e: any) => void
// e: any because as it would otherwise overlap with existing types // e: any because as it would otherwise overlap with existing types
/** /**
* requires experimental.newNextLinkBehavior * Optional event handler for when Link is touched.
*/ */
onTouchStart?: (e: any) => void onTouchStart?: (e: any) => void
// e: any because as it would otherwise overlap with existing types // e: any because as it would otherwise overlap with existing types
/** /**
* requires experimental.newNextLinkBehavior * Optional event handler for when Link is clicked.
*/ */
onClick?: (e: any) => void onClick?: (e: any) => void
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment