npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

zteui-icon

v2.1.5

Published

An icon component for ReactJS.

Downloads

163

Readme

zteui-icon

An icon component for ReactJS

通用图标组件

图标的命名规范

命名规范参考ant-designicon组件

如何使用

安装

你可以使用npm或cnpm进行安装

当UED通知你图标库已更新,你同样可以再次安装以更新该组件,并在项目中使用新图标

npm install @cbd/icon --save

or

cnpm install @cbd/icon --save

引用

import Zcon from '@';

使用

使用 Zcon 标签声明组件,指定图标对应的 type 属性,font-size样式调整大小,示例代码如下:

<Zcon type="link" />

spin 是否强制/取消旋转

<Zcon type="link" spin />

svg 是否强制/取消svg模式

<!-- svg模式会使颜色固定为默认颜色,不能修改,普通图标强制设为svg模式没有意义 -->
<Zcon type="link" svg />

<!-- (一般demo种彩色展示的是svg模式的图标)取消svg模式,会让图标丢失颜色信息,并接受color控制 -->
<Zcon type="camera-point-samll" svg={false} style={{color: '#F00'}} />