New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

material-symbols-react

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-symbols-react

React component for Material Symbols

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Material Symbols for React

A simple React component wrapper for Material Symbols on-top of Ravindra Marella's npm package of Google's Material Symbols.

Author: Bryan Waldeva

Installation (npm)

npm install material-symbols-react

Usage (JSX/TSX)

import { MaterialSymbol } from "material-symbols-react";

export default function Component() {
  return (
    <MaterialSymbol symbol="home" />
  )
}

Props

Refer to the Google Material Symbols Documentation from Ravindra Marella for list of symbols (icons) and details on the effect of the props below.

PropType (Typescript)Notes
symbol'10k' | '10mp' | ... | 'zoom_out_map'Required. Refer to Google Material Symbols Documentation.
stylingoutlined | rounded | sharpOptional. Default false.
filledboolean | undefinedOptional. Default false.
weight100 | ... | 700 | undefinedOptional. Default 400.
grade-25 | ... | 100 | undefinedOptional. Default 0.
size20 | ... | 48 | undefinedOptional. Default 24. Refer to Optical Size in documentation.
classNamestring | undefinedOptional. Default undefined. You can set any CSS className for additional styling.
refReact.ForwardRef<HTMLSpanElement> | undefinedOptional. Default undefined. Can forward a ref to the underlying span element.
...props... | undefinedOptional. Default undefined. Any additional component props applicable to a span element.

License

Material Symbols are created by Google. Ravindra Marella's NPM package of the Material Symbols is distributed with an Apache 2.0 License This package is distributed with an MIT License.

Keywords

material

FAQs

Package last updated on 16 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts