Skip to content
Icon integration for Astro

Every icon you need.
Zero runtime.

Local SVGs, 300,000+ Iconify icons, sprites, and framework adapters — resolved and optimized at build time. Nothing shipped to the browser.

Get started
300k+Iconify icons
5framework adapters
0 kbclient JavaScript
100%build-time SVGO
01 — What you get

One component, every icon source

Icons are resolved, deduplicated, and optimized when you build — not loaded from a client-side icon pack. Features has examples, comparisons, and deep dives.

02 — How it feels

Name it, ship it

Reference a local file, an Iconify icon, or an imported SVG with the sameIcon component. Repeated icons become sprites automatically.

src/pages/index.astro
---
import { Icon } from "astro-iconset/components";
import logo from "../assets/logo.svg?icon";
---

<!-- src/icons/rocket.svg -->
<Icon name="rocket" />

<!-- any Iconify set -->
<Icon name="mdi:account" size={24} />

<!-- one-off import -->
<Icon icon={logo} title="Logo" />