# heroicons-next

> Heroicons for Next.js app

Latest version **0.1.3** (published 2023-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install heroicons-next
pnpm add heroicons-next
yarn add heroicons-next
bun add heroicons-next
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-06-04 |
| First published | 2023-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | caspater |
| Maintainers | caspater |
| Keywords | next, next.js, Heroicons |

## Links

- npm: https://www.npmjs.com/package/heroicons-next
- Repository: https://github.com/caspater/next-heroicons
- Homepage: https://github.com/caspater/next-heroicons#readme
- Issues: https://github.com/caspater/next-heroicons/issues
- npm.io page: https://npm.io/package/heroicons-next

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2023-06-04
- 0.1.1 — 2023-06-04
- 0.1.0 — 2023-06-04

## README

# Next.js Heroicons

Heroicons for Next.js using [Heroicons](https://github.com/tailwindlabs/heroicons).

## How to install?

```bash
npm i next-heroicons
```

## How to use?

After installing the package, import `the icon component`

```js
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`

```js
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>
  );
}
```

```bash
Happy coding!!!
```

---
_Source: https://npm.io/package/heroicons-next · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
