boxicons icon indicating copy to clipboard operation
boxicons copied to clipboard

NextJS support

Open SNR99 opened this issue 2 years ago • 2 comments

It seems like boxicons are not supported on NEXTJS I get the following message error - ReferenceError: window is not defined

SNR99 avatar May 12 '22 13:05 SNR99

yes I have the same error when I import in _app.js

soymartinez avatar May 13 '22 01:05 soymartinez

Using css import the link, then you can using the font tag import your icon e.g. @import url("https://unpkg.com/[email protected]/css/boxicons.min.css"); <i class='bx bxs-color'></i>

leewei0923 avatar Jun 06 '22 13:06 leewei0923

Even after a year, this error still occurs. But currently I'm using react-icons to add boxicon, for me it's better than using cdn.

sofaemha avatar Apr 18 '23 12:04 sofaemha