react-component-octicons:Octicons的零依赖React组件

时间:2021-04-27 13:35:23
【文件属性】:
文件名称:react-component-octicons:Octicons的零依赖React组件
文件大小:40KB
文件格式:ZIP
更新时间:2021-04-27 13:35:23
react octicons component icon octicon Octicons的React组件 。 我建议先尝试一下。 是用于最新 (v8.x)的组件库。 该库包装了SVG图标,并提供了一个React组件 。 由构建并准备就绪。 该库没有依赖性,因为所有用于octicon的<svg>元素都嵌入在库中。 您不需要任何源代码打包程序即可使用此库。 要查看图标的目录,请访问构建。 安装 $ npm install --save react-component-octicons 用法 组件具有必需的属性name和可选的属性zoom , style 。 import * as React from 'react' ; import { render } from 'react-dom' ; import Octicon from 'react-component-octicons' ; render (
【文件预览】:
react-component-octicons-master
----index.tsx(94KB)
----stories()
--------index.stories.js(3KB)
----LICENSE.txt(2KB)
----scripts()
--------template.tsx(1KB)
--------generate.ts(1KB)
----.storybook()
--------config.js(280B)
--------preview-head.html(1KB)
--------addons.js(42B)
----.prettierrc.json(106B)
----.travis.yml(275B)
----tsconfig.json(534B)
----test()
--------smoke()
--------dts()
--------unit()
----README.md(4KB)
----.npmrc(19B)
----docs()
--------index.html(1KB)
--------favicon.ico(5KB)
--------iframe.html(2KB)
----.gitignore(77B)
----package.json(2KB)

网友评论