Installation
Install the React package with your favorite package manager, or load the Web Component directly from a CDN.
Package Managers
npm
CLI
npm install @animeicons/reactpnpm
CLI
pnpm add @animeicons/reactyarn
CLI
yarn add @animeicons/reactbun
CLI
bun add @animeicons/reactReact & Next.js Stylesheet
Import the animation stylesheet once in your root layout or entry file:
app/layout.tsx
TSX
import "@animeicons/react/styles.css";Plain HTML (CDN Script)
Use the <anime-icon> custom element without any build step:
index.html
HTML
<script src="https://cdn.jsdelivr.net/npm/@animeicons/core/dist/animeicons.min.js"></script>
<anime-icon name="0-circle" variant="duotone" animation="auto" trigger="hover"></anime-icon>ES Module (Vanilla JS / Vue / Svelte / Astro)
main.ts
ESM
npm install @animeicons/core
import { defineAnimeIcon } from "@animeicons/core";
defineAnimeIcon();