3 ms·
Sorry! It's because the Nextjs Link component is dumb and doesn't let you pass className directly so I can't style it without using button and the onClick optio
by bilater 6y ago
Sorry! It's because the Nextjs Link component is dumb and doesn't let you pass className directly so I can't style it without using button and the onClick option to navigate :(
You can make it an <a> tag (as you pointed out) and add target="_blank" which will make it open in a new tab. Will also have to add "cursor-pointer" in the className to get the cursor on hover effect.
- carmen_sandiego 6y agoclassName should be set on your <a> which is wrapped by <Link>. Or have I misunderstood your problem?