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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rowan287630/ui

v0.1.0

Published

RW React UI 组件库 - 现代化的 React 组件集合

Downloads

9

Readme

@rw/ui

现代化的 React UI 组件库,基于 TypeScript 构建,支持 Tailwind CSS。

🚀 特性

  • 💪 TypeScript - 完整的类型支持
  • 🎨 Tailwind CSS - 现代化的样式系统
  • 📦 Tree Shaking - 按需加载,优化包体积
  • 🔧 易于定制 - 支持自定义样式和主题
  • 轻量级 - 小巧精简,性能优越

📦 安装

# npm
npm install @rowan287630/ui

# yarn
yarn add @rowan287630/ui

# pnpm
pnpm add @rowan287630/ui

🔧 使用

基本用法

import React from 'react'
import { Button } from '@rw/ui'

function App() {
  return (
    <div>
      <Button onClick={() => console.log('Hello!')}>
        点击我
      </Button>
    </div>
  )
}

Button 组件

import { Button } from '@rw/ui'

// 基本按钮
<Button>默认按钮</Button>

// 不同类型
<Button type="primary">主按钮</Button>
<Button type="secondary">次要按钮</Button>
<Button type="outline">轮廓按钮</Button>

// 不同尺寸
<Button size="small">小按钮</Button>
<Button size="medium">中等按钮</Button>
<Button size="large">大按钮</Button>

// 禁用状态
<Button disabled>禁用按钮</Button>

// 自定义样式
<Button className="bg-red-500 hover:bg-red-600">
  自定义按钮
</Button>

📋 API 文档

Button

| 属性 | 类型 | 默认值 | 说明 | | --------- | ------------------------------------------------------ | ----------- | ---------------- | | type | 'primary' | 'secondary' | 'outline' | | size | 'small' | 'medium' | 'large' | | disabled | boolean | false | 是否禁用 | | onClick | (event: React.MouseEvent<HTMLButtonElement>) => void | - | 点击事件处理函数 | | className | string | - | 自定义 CSS 类名 | | children | React.ReactNode | - | 按钮内容 |

🎨 样式依赖

本组件库基于 Tailwind CSS 构建。如果你的项目中还没有 Tailwind CSS,请先安装:

npm install tailwindcss

或者你可以通过 CDN 引入基础样式:

<link href="https://cdn.tailwindcss.com" rel="stylesheet">

📦 开发

# 克隆项目
git clone https://github.com/你的用户名/rw-ui.git

# 安装依赖
pnpm install

# 构建组件库
pnpm build

# 开发模式
pnpm dev

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📄 许可证

MIT License - 详见 LICENSE 文件

🔗 相关链接

更新日志

0.1.0

  • ✨ 新增 Button 组件
  • 🎨 支持多种样式和尺寸
  • 📦 初始版本发布