Skip to content

caspater/next-heroicons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js Heroicons

Heroicons for Next.js using Heroicons.

How to install?

npm i heroicons-next

How to use?

After installing the package, import the icon component

import { OutlineAcademicCap } from "heroicons-next";

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 "heroicons-next";

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published