npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mal-icons/react

v0.6.10

Published

React components and dynamic icon rendering for mal-icons.

Downloads

887

Readme

@mal-icons/react

npm License: MIT

React adapter for mal-icons — a high-performance, tree-shakeable icon SDK. Each icon is a pre-generated component, so there is no runtime tree-walking, no JSON parsing on render, and no dangerouslySetInnerHTML.

Highlights

  • Tree-shakeable — every icon is its own module; bundlers keep only what you import.
  • Tiny — a strict per-icon budget (< 0.8 KB gzipped) is enforced in CI.
  • Themeablesize, color, weight, and className resolved through IconContext, with per-icon overrides.
  • Pure-CSS animationsspin, pulse, beat, bounce, ping, shake, wiggle, float, heartbeat, flip, rotate, zoom, fade, slide, glow, swing, tada, with a prefers-reduced-motion guard.
  • Advanced delivery — SVG sprites, dynamic-by-name loading with caching/preloading, and CDN loaders.
  • Server Components — a hook-free /server entry renders icons in RSC with zero client JS.
  • Accessible — correct role / aria-hidden handling and optional <title>.

Installation

bun add @mal-icons/react
# or
npm install @mal-icons/react

Requires React 18 or newer (peer dependency).

Use with AI agents

AI coding agents can add and theme these icons for you via the mal-icons agent skill. Install it with the skills CLI:

npx skills add mal-icons/mal-icons

Then ask your agent to "add a trash icon" and it searches the catalog and writes the correct @mal-icons/react import. See the React setup guide.

Quick start

Import icons directly from the set subpath (/fi = Feather):

import { FiActivity } from "@mal-icons/react/fi";

export function Status() {
  return <FiActivity size={24} color="currentColor" title="Status" />;
}

App-wide theming

import { IconContext } from "@mal-icons/react";

export function App() {
  return (
    <IconContext.Provider value={{ size: 20, color: "#3366ff" }}>
      <Toolbar />
    </IconContext.Provider>
  );
}

Per-icon props always override context values.

Props

| Prop | Type | Description | | ---------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------- | | size | number \| string | Width and height (defaults to 1em) | | color | string | Overrides currentColor | | weight | "thin" \| "light" \| "regular" \| "bold" | Stroke weight for stroke-based sets | | animate | IconAnimation ("spin", "pulse", "bounce", "shake", "heartbeat", …) | CSS animation preset | | secondaryColor | string | Multi-tone color, exposed as --mal-icons-secondary | | title | string | Accessible label (renders <title> + role="img") | | className | string | Additional class names | | style | CSSProperties | Inline styles |

Animations

Animations are pure CSS. Inject the keyframes once and they apply only to icons that opt in:

import { ICON_ANIMATIONS_CSS } from "@mal-icons/react";

<style>{ICON_ANIMATIONS_CSS}</style>;
<FiLoader animate="spin" />;

Advanced rendering

SVG sprite

import { SpriteIcon } from "@mal-icons/react";

<SpriteIcon id="fi-activity" href="/sprite/fi.svg" />;

Dynamic by name (caching + preload)

import {
  Icon,
  cdnLoader,
  setDefaultIconLoader,
  preloadIcon,
} from "@mal-icons/react";

setDefaultIconLoader(cdnLoader("https://cdn.example.com/icons"));
preloadIcon("FiActivity"); // optional warm-up

<Icon name="FiActivity" size={24} />;

React Server Components

The /server entry is hook-free and renders directly inside Server Components:

import { createServerIcon } from "@mal-icons/react/server";

API

import {
  IconBase,
  createIcon,
  SpriteIcon,
  Icon,
  cdnLoader,
  setLoader,
  setDefaultIconLoader,
  preloadIcon,
  clearIconCache,
  IconContext,
  DefaultIconContext,
  ICON_ANIMATIONS_CSS,
  WEIGHT_STROKE_WIDTH,
  animationClass,
} from "@mal-icons/react";

Icons

The bundled icon sets, their upstream licenses, pinned versions, and counts:

| Icon Library | License | Version | Count | | ---------------------------------------- | --------------------------------------------------------------------------------- | ------- | ----: | | Ant Design Icons | MIT license | 4.0.0 | 420 | | Circum Icons | MPL-2.0 license | 2.0.2 | 288 | | Devicons | MIT license | 2.0.1 | 1725 | | Feather | MIT license | 4.29.0 | 287 | | Font Awesome Free | CC BY 4.0 license | 6.7.2 | 1402 | | Font Awesome Free Brands | CC BY 4.0 license | 6.7.2 | 495 | | Font Awesome Free Regular | CC BY 4.0 license | 6.7.2 | 163 | | Ionicons | MIT license | 8.0.13 | 1357 | | Lucide | ISC license | 1.19.0 | 1727 | | Octicons | MIT license | 19.28.1 | 733 | | Typicons | CC BY-SA 4.0 license | 2.1.2 | 336 | | Weather Icons | SIL OFL 1.1 license | 2.0.12 | 219 |

Subpath exports

| Import | Contents | | -------------------------------- | ---------------------------------------- | | @mal-icons/react | Adapter, context, sprite/dynamic helpers | | @mal-icons/react/ad | All Ant Design icons (named exports) | | @mal-icons/react/ci | All Circum icons (named exports) | | @mal-icons/react/dev | All Devicons icons (named exports) | | @mal-icons/react/ad/AdHome | A single Ant Design icon module | | @mal-icons/react/ci/CiHeart | A single Circum icon module | | @mal-icons/react/dev/DevDreamhost | A single Devicons icon module | | @mal-icons/react/fa | All Font Awesome icons (named exports) | | @mal-icons/react/fab | All Font Awesome Brands icons (named exports) | | @mal-icons/react/far | All Font Awesome Regular icons (named exports) | | @mal-icons/react/fi | All Feather icons (named exports) | | @mal-icons/react/fa/FaHeart | A single icon module | | @mal-icons/react/fab/FabGithub | A single icon module | | @mal-icons/react/far/FarHeart | A single icon module | | @mal-icons/react/fi/FiActivity | A single icon module | | @mal-icons/react/io | All Ionicons (named exports) | | @mal-icons/react/lu | All Lucide (named exports) | | @mal-icons/react/oc | All Octicons (named exports) | | @mal-icons/react/io/IoHeart | A single Ionicons icon module | | @mal-icons/react/lu/LuHeart | A single Lucide icon module | | @mal-icons/react/oc/OcHeart16 | A single Octicons icon module | | @mal-icons/react/ti | All Typicons (named exports) | | @mal-icons/react/wi | All Weather Icons (named exports) | | @mal-icons/react/ti/TiHeart | A single Typicons icon module | | @mal-icons/react/wi/WiDaySunny | A single Weather Icons icon module | | @mal-icons/react/server | Hook-free Server Component entry | | @mal-icons/react/sprite/ad.svg | Pre-built Ant Design sprite asset | | @mal-icons/react/sprite/ci.svg | Pre-built Circum sprite asset | | @mal-icons/react/sprite/dev.svg | Pre-built Devicons sprite asset | | @mal-icons/react/sprite/fa.svg | Pre-built Font Awesome sprite asset | | @mal-icons/react/sprite/fab.svg | Pre-built Font Awesome Brands sprite asset | | @mal-icons/react/sprite/far.svg | Pre-built Font Awesome Regular sprite asset | | @mal-icons/react/sprite/fi.svg | Pre-built Feather sprite asset | | @mal-icons/react/sprite/io.svg | Pre-built Ionicons sprite asset | | @mal-icons/react/sprite/lu.svg | Pre-built Lucide sprite asset | | @mal-icons/react/sprite/oc.svg | Pre-built Octicons sprite asset | | @mal-icons/react/sprite/ti.svg | Pre-built Typicons sprite asset | | @mal-icons/react/sprite/wi.svg | Pre-built Weather Icons sprite asset |

Example

A complete Vite + React 19 gallery — context theming, weights, animations, and live search — lives in examples/react. A Next.js App Router (RSC) demo lives in examples/nextjs.

Repository

https://github.com/mal-icons/mal-icons · package directory packages/react.

License

MIT © MALDevs. Source icon sets may carry their own licenses — use mal-icons licenses from the CLI when shipping bundled sets.