Socket
Book a DemoInstallSign in
Socket

@agentable/icons-astro

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentable/icons-astro

Agentable Icons for Astro

0.3.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@agentable/icons-astro

Lightweight, modern Astro icon library providing a massive collection of carefully designed SVG icons with zero runtime JS by default, perfect for SSR and Tree-Shaking.

Features

  • 🚀 Ready to Use: Each icon is an independent Astro component, directly render with <Icon />
  • 📦 Tree-Shakable: Only bundle the icons you actually import
  • 🎨 Fully Customizable: Supports all native SVG attributes + additional props
  • 🔧 TypeScript: Complete type definitions with IDE smart suggestions

Installation

::: code-group

pnpm add @agentable/icons-astro
yarn add @agentable/icons-astro
npm install @agentable/icons-astro

:::

Quick Start

---
import { Home, User } from '@agentable/icons-astro';
---

<Home />
<User color='tomato' size={32} />

2. Direct Path Import (Fastest Build)

---
import Home from '@agentable/icons-astro/icons/Home';
---

<Home />

Props

NameTypeDefaultDescription
sizenumber | string24Width & height (in px)
colorstringcurrentColorStroke color
strokeWidthnumber2Stroke width
absoluteStrokeWidthbooleanfalseAuto-scale stroke based on icon size

Supports all SVG Presentation Attributes.

Custom Icons (IconNode)

---
import Icon from '@agentable/icons-astro/Icon.astro';
import type { IconNode } from '@agentable/icons-astro';

const heartNode: IconNode = [
  [
    'path',
    {
      d: 'M12 21l-1-1C5 14 2 11 2 7a5 5 0 0 1 8-4 5 5 0 0 1 8 4c0 4-3 7-9 13l-1 1z',
    },
  ],
];
---

<Icon iconNode={heartNode} color='red' />

Migration from Lucide Astro

APIs are compatible, just replace the package name:

-import { Home } from '@lucide/astro';
+import { Home } from '@agentable/icons-astro';

Made with ❤️ by Agentable

Keywords

icons

FAQs

Package last updated on 28 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.