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

@veho-tech/material-icons-react

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@veho-tech/material-icons-react

Google material icons implementation for React

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

material-icons-react

This is basically just https://www.npmjs.com/package/material-icons-react, but without all the dependencies.

Introduction

This package provides a convinient react component for using Google's Material Icons in your react application.

Features

Usage

Import module using the following statement.

import MaterialIcon, {colorPallet} from '@veho-tech/material-icons-react';
  • Rendering an icon is straightforward.
<MaterialIcon icon="dashboard" />
<MaterialIcon icon="alarm_on" />
  • Change the icon size by using the size property.
<MaterialIcon icon="dashboard" size='large' />
<MaterialIcon icon="dashboard" size={100} />
  • Invert the icon by using the invert property.
<MaterialIcon icon="dashboard" invert />
  • Make the icon inactivate by using the inactive property.
<MaterialIcon icon="dashboard" inactive />
  • Change the color of an icon.
<MaterialIcon icon="dashboard" color={colorPallet.amber._200} />
<MaterialIcon icon="dashboard" color={colorPallet.amber.A700} />
  • Using a custom color.
<MaterialIcon icon="dashboard" color='#7bb92f' />

Icon size matrix

AliasSize
tiny18px
small24px
medium36px
large48px

License

MIT

Keywords

react-component

FAQs

Package last updated on 30 Nov 2017

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