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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-hui

v2.0.2

Published

基于 React 的 Web 前端组件库

Downloads

36

Readme

HUI Build Status npm version

基于 React 的 Web 前端组件库

安装

npm install react-hui

示例

import 'react-hui/dist/hui.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Mask } from 'react-hui';

ReactDOM.render(
    <Mask/>
    , document.getElementById('container'));

贡献代码

整个项目有两个入口:

  1. src/components/index.js HUI 组件对外输出的总入口
    • 加载样式文件
      • 加载 normalize.css
      • 加载全局样式文件
        • 加载全局 variable, mixin 的总入口 style/fn.less
          • 加载 variable
          • 加载 mixin
        • 定义全局样式
    • 加载 React 组件
  2. src/index.js HUI 组件演示网站的总入口
    • 加载路由配置文件 Routes.js
      • 加载布局页面 pages/Master.js
      • 加载 pages 下面的各个页面

开发注意事项:

  1. 开发组件:
    • 组件的所有文件都必须放在一个文件夹下
    • 组件文件夹的命名全部采用小写, 单词之间用中划线连接
    • index.js 必选, 为 React 组件的主文件
    • index.less 可选, 为 React 组件的样式文件, 样式命名必须以 hui- 打头
    • 组件开发完成以后, 需要在入口文件 src/components/index.js 中登记
  2. 开发样式:
    • 组件的样式文件必须定义在该组件所在的文件夹下
    • style 下定义的是全局 variable 和 mixin
    • 样式文件开发完成以后, 需要在入口文件 style/fn.less 中登记