Socket
Book a DemoInstallSign in
Socket

@agentable/icons-static

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-static

Agentable Icons static library with SVG files, SVG strings and sprite support

0.3.0
latest
Source
npmnpm
Version published
Weekly downloads
17
-87.94%
Maintainers
1
Weekly downloads
 
Created
Source

@agentable/icons-static

Framework-agnostic static icon library that can be used with <i> tags or JavaScript calls, with Tree-Shaking support.

Features

  • 🚀 Framework Agnostic: Works with any web framework or vanilla JavaScript
  • 📦 Tree-Shakable: Only bundle the icons you actually import
  • 🎨 Customizable: Control styles through data attributes or JavaScript parameters
  • 🔧 TypeScript: Complete type definitions out of the box

Installation

pnpm add @agentable/icons-static

Quick Start

Place <i> tags in HTML, then use JavaScript to replace them.

HTML:

<i data-icon="home"></i>
<i data-icon="search" data-color="red" data-size="32"></i>

JavaScript:

import { createIcons, Home, Search } from '@agentable/icons-static';

// Only replace the icons you declare, supports tree-shaking
createIcons({
  icons: {
    home: Home,
    search: Search,
  },
}).replace();

2. Imperative Usage

Create icons directly in JavaScript.

import { createIcon, Home } from '@agentable/icons-static';

// Returns SVGElement in browser
const svgEl = createIcon(Home, { color: 'blue', size: 24 });
document.body.appendChild(svgEl);

// Returns SVG string in Node.js
const svgString = createIcon(Home, { color: 'blue', size: 24 });

Props

NameTypeDefault
sizenumber | string24
colorstringcurrentColor
strokeWidthnumber2

Supports all native SVG SVGSVGElement attributes.

Made with ❤️ by Agentable

Keywords

agentable

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.