heroicons-next
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Next.js Heroicons

Heroicons for Next.js using Heroicons.

How to install?

npm i next-heroicons

How to use?

After installing the package, import the icon component

import { OutlineAcademicCap } from "next-heroicons";

export default function MyApp({ Component, pageProps }) {
  return (
    <div className="w-10 h-10 text-gray-300 ">
      <OutlineAcademicCap />
    </div>
  );
}

Using the map

You can also render an icon from a HeroMap

import { HeroMap } from "next-heroicons";

export default function MyApp({ Component, pageProps }) {
  return (
    <div className="w-10 h-10 text-gray-300 ">
      {HeroMap["outline-academic-cap"]}
    </div>
  );
}
Happy coding!!!

Readme

Keywords

Package Sidebar

Install

npm i heroicons-next

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

1.96 MB

Total Files

7

Last publish

Collaborators

  • caspater