[英]How can I add a link to another website using react-icons in Next.js
How can I add links to my react-icons.如何将链接添加到我的反应图标。 I want to link the LinkedIn button to my linked in and have a mailto option for the mail icon.
我想将 LinkedIn 按钮链接到我的链接,并为邮件图标提供一个 mailto 选项。
I am using Next.js and TailwindCSS to create my application.我正在使用 Next.js 和 TailwindCSS 来创建我的应用程序。
Here is the snippet of my code.这是我的代码片段。
<div className="text-5xl flex justify-center gap-16 py-3 text-gray-600 dark:text-gray-50">
<AiFillLinkedin href="https://www.google.com/"/>
<AiFillMail href="mailto:info@mailgo.dev"/>
</div>
Have you attempted to wrap this in a
tag?您是否尝试过将其包装
a
标签中?
<div className="text-5xl flex justify-center gap-16 py-3 text-gray-600 dark:text-gray-50">
<a href="https://www.google.com/"><AiFillLinkedin /></a>
<a href="mailto:info@mailgo.dev"><AiFillMail /></a>
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.