[go: up one dir, main page]

@material-symbols/svg-400

0.27.0 • Public • Published

Latest optimized SVGs with weight 400 for Material Symbols.

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

For variable icon fonts, see @material-symbols/font-400

Installation

Install the latest version using:

npm install @material-symbols/svg-400@latest

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

Show all packages
Package Weight
@material-symbols/svg-100 100
@material-symbols/svg-200 200
@material-symbols/svg-300 300
@material-symbols/svg-400 400
@material-symbols/svg-500 500
@material-symbols/svg-600 600
@material-symbols/svg-700 700

Usage

Material Symbols are available in three styles—outlined, 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:

@material-symbols/svg-400/{style}/{icon}.svg      /* Fill 0 */
@material-symbols/svg-400/{style}/{icon}-fill.svg /* Fill 1 */

For example, SVGs for face icon are located at:

@material-symbols/svg-400/outlined/face.svg      /* Fill 0 */
@material-symbols/svg-400/outlined/face-fill.svg /* Fill 1 */
@material-symbols/svg-400/rounded/face.svg       /* Fill 0 */
@material-symbols/svg-400/rounded/face-fill.svg  /* Fill 1 */
@material-symbols/svg-400/sharp/face.svg         /* Fill 0 */
@material-symbols/svg-400/sharp/face-fill.svg    /* Fill 1 */

React

You can use @svgr/webpack to import SVGs as React components:

import Face from '@material-symbols/svg-400/outlined/face.svg';

// Face is a React component that renders the SVG

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

If you are using @svgr/webpack with file-loader (example: Create React App), use:

import { ReactComponent as Face } from '@material-symbols/svg-400/outlined/face.svg';

Vue

You can use @svgv/webpack to import SVGs as Vue components:

<template>
  <div class="App">
    <Face />
  </div>
</template>

<script>
import Face from '@material-symbols/svg-400/outlined/face.svg';

// Face is a Vue component that renders the SVG

export default {
  components: {
    Face,
  },
};
</script>

Styling

SVGs can be styled using CSS. Setting width and height to 1em allows changing size via font-size. Setting fill to currentColor allows changing color via color.

.App svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

Available Icons

See demo.

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.27.0125latest

Version History

VersionDownloads (Last 7 Days)Published
0.27.0125
0.26.01,187
0.25.3117
0.25.249
0.25.1181
0.25.0333
0.24.01,266
0.23.01,248
0.22.2181
0.22.124
0.22.0158
0.21.391
0.21.2257
0.21.10
0.21.01
0.20.0930
0.19.04,292
0.18.023
0.17.431
0.17.37
0.17.212
0.17.15
0.17.08
0.16.097
0.15.0234
0.14.742
0.14.615
0.14.56
0.14.40
0.14.3132
0.14.20
0.14.1643
0.14.044
0.13.2333
0.13.120
0.13.01
0.12.016
0.11.00
0.10.48
0.10.30
0.10.20
0.10.15
0.10.069
0.9.00
0.8.18
0.8.00
0.7.00
0.6.00
0.5.5140
0.5.4309
0.5.37
0.5.20
0.5.10
0.5.0164
0.4.631
0.4.50
0.4.40
0.4.3401
0.4.211
0.4.11
0.4.00
0.3.01
0.2.1569
0.2.140
0.2.130
0.2.120
0.2.110
0.2.100
0.2.90
0.2.83
0.2.70
0.2.61
0.2.50
0.2.40
0.2.31
0.2.20
0.2.10
0.2.00
0.1.00

Package Sidebar

Install

npm i @material-symbols/svg-400

Weekly Downloads

11,430

Version

0.27.0

License

Apache-2.0

Unpacked Size

11.5 MB

Total Files

20829

Last publish

Collaborators

  • marella