0.1.4 • Published 4 years ago

@tntd/file-icon v0.1.4

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

文件图标

这是一个内置了常用图标的npm库,可以很方便的调用,图标格式为svg,宽高相等,扁平化的设计,适合现在我们常用的系统风格;

安装

npm install @tntd/file-icon --save-dev

使用

import { FileIcon } from "@tntd/file-icon";

我们提供三种方式调用图标:
1、传入后缀名:<FileIcon extname="jpeg"/>
2、传入文件名称:<FileIcon name="README.md"/>
2、传入文件链接:<FileIcon url="https://www.baidu.com/cdn/demo.key"/>
0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago