0.6.1 • Published 4 months ago

@wirechunk/material-symbols-react-400 v0.6.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

@wirechunk/material-symbols-react-400

Latest optimized SVGs with weight 400 for Material Symbols.

This package is automatically updated, so it will always have the latest icons from Google.

Installation

Install the latest version using:

npm install @wirechunk/material-symbols-react-400@latest

The package @wirechunk/material-symbols-react-400 includes only SVGs with weight 400. To use a different weight, replace 400 in the package name with the desired weight.

PackageWeight
@wirechunk/material-symbols-react-200200
@wirechunk/material-symbols-react-300300
@wirechunk/material-symbols-react-400400
@wirechunk/material-symbols-react-500500
@wirechunk/material-symbols-react-600600

Usage

Material Symbols are available in three stylesoutlined, rounded, and sharp. SVGs are available for both unfilled (FILL 0) and filled (FILL 1) states with grade (GRAD) 0 and size (opsz) 48px. Other variations of grade and size are not included to keep the package size small. SVGs for each icon are located in the corresponding style directory:

@wirechunk/material-symbols-react-400/{optical size}/{style}/{icon}.tsx
@wirechunk/material-symbols-react-400/{optical size}/{style}/{icon}-fill.tsx

Optical sizes can be 20, 24, or 48.

For example, SVGs for the face icon with weight 400 and optical size 20 are located at:

@wirechunk/material-symbols-react-400/20/outlined/face.tsx
@wirechunk/material-symbols-react-400/20/outlined/face-fill.tsx
@wirechunk/material-symbols-react-400/20/rounded/face.tsx
@wirechunk/material-symbols-react-400/20/rounded/face-fill.tsx
@wirechunk/material-symbols-react-400/20/sharp/face.tsx
@wirechunk/material-symbols-react-400/20/sharp/face-fill.tsx
import { Face } from '@wirechunk/material-symbols-react-400/20/outlined/face';

function App() {
  return (
    <div>
      <Face className="some-face" />
    </div>
  );
}

Styling

SVGs can be styled using CSS or normal props. All SVGs have the fill="currentcolor" prop set, so they inherit their color. You can change the color by setting the color CSS property.

Size can also be set with width and height props. Setting width and height to 1em allows changing size via font-size.

.some-face {
  width: 1em;
  height: 1em;
}

License

Material Symbols are created by Google.

We have made these icons available for you to incorporate into your products under the Apache License Version 2.0. Feel free to remix and re-share these icons and documentation in your products. We'd love attribution in your app's about screen, but it's not required.

This project is a fork of github.com/marella/material-symbols.

0.6.1

4 months ago

0.6.0

5 months ago

0.5.0

6 months ago

0.5.2

5 months ago

0.5.1

6 months ago

0.4.2

8 months ago

0.0.1

10 months ago