在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):TeamWertarbyte/mdi-material-ui开源软件地址(OpenSource Url):https://github.com/TeamWertarbyte/mdi-material-ui开源编程语言(OpenSource Language):JavaScript 97.5%开源软件介绍(OpenSource Introduction):Material Design Icons for Material-UIThis module provides Material-UI 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. Installationnpm install mdi-material-ui --save There are different major versions of this package, each one for different Material-UI releases. Note that this project does not follow semantic versioning. If Material Design Icons removes or renames icons, it will still be a minor version bump.
* mdi-material-ui v4 (for Material-UI v0) is not updated anymore UsageEvery icon is exported with its original name in PascalCase. So The Material Design Light icons are included in the With tree-shakingIf 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-shakingIf 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 /> LicenseThe scripts included in this repository are licensed under the MIT license. The icons are licensed under the MIT license (see Material Design Icons and the NOTICE file). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论