![](/img/trans.png)
[英]Use react-icons for pointStyles in Chart.js graph on Next.js app
[英]How can I add a link to another website using react-icons in Next.js
如何將鏈接添加到我的反應圖標。 我想將 LinkedIn 按鈕鏈接到我的鏈接,並為郵件圖標提供一個 mailto 選項。
我正在使用 Next.js 和 TailwindCSS 來創建我的應用程序。
這是我的代碼片段。
<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>
您是否嘗試過將其包裝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.