mdi-material-ui

Material-UI SvgIcon components for Material Design Icons.

Github星跟蹤圖

Material Design Icons for Material-UI

npm
Material Design Icons version
Material Design Icons version

This module provides Material-UI <SvgIcon /> components for all
Material Design Icons. This is pretty handy if you use React and Material-UI
to build a web app and run out of icons.

While this module contains wrappers for all icons, alias names are not included. For example, the plus icon is aliased as add, but only the plus icon
is exported.

Installation

npm install mdi-material-ui --save

There are three major versions of this package, each one for different Material-UI releases. All three versions will receive icon updates as minor releases for the foreseeable future., Material-UI, mdi-material-ui, npm tag, ---, ---, ---, ^4.0.0, ^6.0.0, latest, ^1.0.0, ^3.0.0, ^5.0.0, mui-v3, 0.x, ^4.0.0, legacy, ## Usage
Every icon is exported with its original name in PascalCase. So coffee becomes Coffee,
cloud-print-outline is exported as CloudPrintOutline and so on.

The Material Design Light icons are included in the /light subdirectory.

With tree-shaking

If your environment supports tree-shaking and you are sure that it works fine in your setup, you can simply import the icons as follows:

import { Coffee, Food } from 'mdi-material-ui'
import { Camera, Settings } from 'mdi-material-ui/light'

<Coffee />
<Food />
<Camera />
<Settings />

Without tree-shaking

If your environment doesn't support tree-shaking, you should only import the icons that you actually need in order to ensure that you don't end up bundling all icons.

import Coffee from 'mdi-material-ui/Coffee'
import Food from 'mdi-material-ui/Food'
import Camera from 'mdi-material-ui/light/Camera'
import Settings from 'mdi-material-ui/light/Settings'

<Coffee />
<Food />
<Camera />
<Settings />

License

The scripts included in this repository are licensed under the WTFPL.
The icons are licensed under the MIT license (see Material Design Icons and the NOTICE file).

主要指標

概覽
名稱與所有者TeamWertarbyte/mdi-material-ui
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2017-04-22 18:53:12
推送於2025-03-28 09:41:54
最后一次提交2025-03-28 10:13:36
發布數144
最新版本名稱v7.9.4 (發布於 )
第一版名稱v1.0.0 (發布於 2016-05-07 20:55:04)
用户参与
星數331
關注者數3
派生數16
提交數123
已啟用問題?
問題數49
打開的問題數1
拉請求數8
打開的拉請求數0
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?