Describe the bug
Issue
- the import statement for the
Link
is incorrect in the snippet that explains how to add Link in the Button.
- Snippet Link
So this creates an error when the snippet is copied and used
Solution
- replace the import statement with
import Link from "next/link"
Affected component/components
Button
How to reproduce
- Go to snippet link
- copy the snippet
- Paste it in a nextjs project
4 You will be prompted with an error Module '"next/link"' has no exported member 'Link'. Did you mean to use 'import Link from "next/link"' instead?
Codesandbox/StackBlitz link
No response
Logs
System Info
Chrome (version - 141.0.7390.76)
Nextjs (version - 15)
Before submitting