Next.js
The icons are plain React components, so they work in Server Components with no client JavaScript at all.
Install
npm i @neaticons/reactThat gives you the 201 free icons. For all 8,568, add your seat key to .npmrc first, same package name.
Server Components
No "use client" needed. The icon is rendered on the server, lands in the HTML as an <svg>, and sends nothing to the browser.
import { Home, Search } from "@neaticons/react"
import { Wallet } from "@neaticons/react/sharp-solid"
export default function Page() {
return (
<nav className="flex gap-4">
<Home className="size-5" />
<Search className="size-5 text-zinc-500" />
<Wallet title="Wallet" />
</nav>
)
}They work the same inside Client Components, layouts, loading.tsx and not-found.tsx.
Fast builds
The package is tree-shakable, so your production bundle only holds the icons you use. To keep dev builds fast with named imports, tell Next.js to load only those icons:
import type { NextConfig } from "next"
const nextConfig: NextConfig = {
experimental: {
optimizePackageImports: ["@neaticons/react"],
},
}
export default nextConfigOr import one file per icon, which needs no config:
import Notification from "@neaticons/react/rounded-solid/notification"Animated icons
With a seat key you also get every icon with a hover animation. They are Client Components already, so you can drop them into a Server Component as they are. trigger="parent" plays the animation when the user hovers the button around the icon.
import { Notification } from "@neaticons/react/animated"
<button className="flex items-center gap-2">
<Notification trigger="parent" />
Notifications
</button>Deploy
Using the full set? Add NEATICONS_LICENSE_KEY as an environment variable in Vercel, Netlify or Cloudflare (all environments that build). The .npmrc reads it during install. Nothing else changes.
Rather own the files?
The CLI writes each icon as a typed component into your project, with no package to install. It works in Server Components too.
npx neaticons add home search wallet