Skip to content

chore(www): update nextjs NavigationMenuLink structure to use asChild prop #7369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Knoa0405
Copy link

This PR updates the usage of the NavigationMenuLink component in the Next.js example to remove deprecated legacyBehavior and passHref props.
It replaces the older structure with the modern asChild pattern, which is the recommended approach when using shadcn/ui components with Next.js.

This resolves the warning shown in the console and ensures better compatibility with newer versions of Next.js.

스크린샷 2025-05-11 22 26 54

Copy link

vercel bot commented May 11, 2025

@Knoa0405 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant