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

@material-symbols-framework/react-svg

v0.0.3

Published

Material Symbols icon components for React, rendered as inline SVG.

Downloads

563

Readme

@material-symbols-framework/react-svg

Material Symbols icons for React, rendered as inline SVG. Tree-shakeable, type-safe, with hover preview in your IDE.

npm downloads license

Why SVG?

  • Zero asset to load — paths embedded in JS, no font request, no FOIT
  • CSP-friendly without a font-src directive
  • Edge & email-ready — works in environments where fonts can't reach
  • Best for apps with a small, well-known icon set

For apps with many icons, the font-based sibling is lighter per-icon.

Installation

npm install @material-symbols-framework/react-svg

Peer dependency: react >= 17. No CSS to import.

Usage

Pick a variant via the sub-export — rounded is the default if you import the root:

// Rounded (default)
import { MsHome, MsFavorite } from '@material-symbols-framework/react-svg';

// Outlined
import { MsHome, MsFavorite } from '@material-symbols-framework/react-svg/outlined';

// Sharp
import { MsHome, MsFavorite } from '@material-symbols-framework/react-svg/sharp';
export default function App() {
  return (
    <>
      <MsHome />
      <MsFavorite color="red" size={32} />
      <MsHome fill />
    </>
  );
}

You can mix variants in the same file by importing each from its sub-path.

Naming convention: snake_case → Ms + PascalCase.

| Material Symbols name | Component name | | :------------------------------ | :---------------------------- | | home | MsHome | | favorite | MsFavorite | | android_cell_dual_5_bar_alert | MsAndroidCellDual5BarAlert | | 3d_rotation | Ms3DRotation |

Props

| Prop | Type | Default | Description | | :-------- | :-------------------------------------------- | :------------- | :------------------------------------------- | | size | number \| string | 24 | Width & height | | color | string | currentColor | SVG fill color | | fill | boolean | false | Filled style (uses the alternate path data) | | className | string | — | Extra classes | | variant | 'outlined' \| 'rounded' \| 'sharp' | from import | Cosmetic class hint (does not change path) | | ...rest | SVGAttributes<SVGSVGElement> | — | Forwarded to the rendered <svg> |

Variable-axis props (grad, strokeWidth, opticalSize) are accepted and silently ignored — they're font-only. Keeping them in the type lets you swap between react and react-svg without TypeScript errors.

Tree-shaking

Importing one icon ships only that icon's path data. With esbuild/Vite/Rollup/webpack, bundle cost is roughly:

| Imports | Bundle (gzip) | | :---------- | :------------ | | 1 icon | ~290 B | | 20 icons | ~5 kB | | 100 icons | ~25 kB |

There is no shared font asset, so everything you ship is exactly what you import.

Accessibility

Each icon renders an <svg> with aria-hidden="true" by default. To label it, pass a <title> child or aria-label:

<MsHome aria-label="Home" />
<MsHome><title>Home</title></MsHome>
<button aria-label="Go home"><MsHome /></button>

Looking for the font-based version?

Use the font-based sibling package: variable-font-driven, supports the full Material Symbols axes (FILL, wght, GRAD, opsz).

npm install @material-symbols-framework/react

License

Apache 2.0 — see LICENSE.

Material Symbols icon designs are © Google, also distributed under Apache 2.0. This package is an independent wrapper and is not affiliated with Google.