Skip to content

Astro Icon

Astro Icon is a simple icon component for Astro.

With Astro Icon, you can easily use over 200,000 open source icons and custom icons with minimal code.

Installation

Install astro-icon:

npm i -D astro-icon

Usage

Astro Icon can inline SVG directly in your HTML:

astro---
import { Icon } from 'astro-icon/components'
---

<Icon name="mdi:home" />

It can also generate SVG sprites.

See Astro Icon readme for more details.

Released under the Apache 2.0 License.