0.1.2 • Published 5 months ago

material-symbols-react v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago