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

@svgd/icons-material

v7.2.3

Published

A single-file collection of Material UI icon paths with IDE preview in the autocomplete.

Readme

@svgd/icons-material

A single-file collection of Material UI icon paths with IDE preview in the autocomplete.

The accompanying TypeScript declarations include base64‑encoded previews so supported editors show the icon image right inside tooltips.

Installation

npm install @svgd/icons-material
# or
yarn add @svgd/icons-material

Usage with React

Create Svg Component:

import React from 'react';
import { getPaths } from '@svgd/core';
import MUISvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';

export function SvgIcon({ icon, ...props }: { icon: string } & SvgIconProps) {
  return (
    <MUISvgIcon {...props}>
      {getPaths(icon).map((attrs, i) => (
        <path key={i} {...attrs} />
      ))}
    </MUISvgIcon>
  );
}

Then:

import { Abc } from '@svgd/icons-material';

<SvgIcon icon={Abc} />;

or

import * as icons from '@svgd/icons-material';

<SvgIcon icon={icons.Abc}  />

Usage with Vue 3

<template>
  <SvgIcon :icon="icons.Abc" width="24" height="24" />
</template>

<script setup lang="ts">
import { h, defineComponent } from 'vue';
import { getPaths } from '@svgd/core';
import * as icons from '@svgd/icons-material';

const SvgIcon = defineComponent({
  props: {
    icon: { type: String, required: true },
    width: { type: [String, Number], default: 24 },
    height: { type: [String, Number], default: 24 },
  },
  setup(props) {
    return () =>
      h(
        'svg',
        {
          xmlns: 'http://www.w3.org/2000/svg',
          viewBox: '0 0 24 24',
          width: props.width,
          height: props.height,
        },
        getPaths(props.icon).map((attrs, i) => h('path', { key: i, ...attrs }))
      );
  },
});
</script>

Usage with Angular

// svg-icon.component.ts
import { Component, Input } from '@angular/core';
import { getPaths } from '@svgd/core';

@Component({
  selector: 'svg-icon',
  template: `
    <svg viewBox="0 0 24 24" [attr.width]="size" [attr.height]="size">
      <path
        *ngFor="let attrs of paths"
        [attr.d]="attrs.d"
        [attr.fill]="attrs.fill"
        [attr.stroke]="attrs.stroke"
      />
    </svg>
  `,
})
export class SvgIconComponent {
  @Input() icon!: string;
  @Input() size: number | string = 24;
  get paths() {
    return getPaths(this.icon);
  }
}

Then in your module:

import { NgModule } from '@angular/core';
import { SvgIconComponent } from './svg-icon.component';

@NgModule({
    declarations: [SvgIconComponent],
    exports: [SvgIconComponent],
})
export class SvgIconModule {}

Usage in Plain JavaScript (no framework)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>SVGD Plain JS Example</title>
  <script type="module">
    import { getPaths } from '@svgd/core';
    import { Abc } from '@svgd/icons-material';

    document.addEventListener('DOMContentLoaded', () => {
      const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
      svg.setAttribute('viewBox', '0 0 24 24');
      svg.setAttribute('width', '64');
      svg.setAttribute('height', '64');

      getPaths(Abc).forEach((attrs) => {
        const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
        Object.entries(attrs).forEach(([key, value]) => {
          path.setAttribute(key, value);
        });
        svg.appendChild(path);
      });

      document.body.appendChild(svg);
    });
  </script>
</head>
<body>
</body>
</html>

More info

This package exports paths.js with 10,773 icon path definitions.

paths.js

All icons are bundled into one file to avoid the thousands of small modules in the original MUI icons packages.

mui icons module -> svgd mui icons module

A static HTML preview is available on GitHub Pages.