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

@yuqi_dev/tailwind-react-ui

v1.0.3

Published

一个基于 Tailwind CSS 的现代化 React UI 组件库

Readme

Tailwind React UI

一个现代化的 React UI 组件库,基于 React 和 TailwindCSS 构建。

安装

npm install @yuqi_dev/tailwind-react-ui
# 或者
yarn add @yuqi_dev/tailwind-react-ui
# 或者
pnpm add @yuqi_dev/tailwind-react-ui

配置

TailwindCSS 配置

本组件库依赖于 TailwindCSS,请确保你的项目中已正确配置 TailwindCSS。如果还没有配置,请按照以下步骤操作:

  1. 安装 TailwindCSS 及其依赖:
npm install -D tailwindcss postcss autoprefixer
  1. 创建 TailwindCSS 配置文件:
npx tailwindcss init -p
  1. 在你的 CSS 文件中导入 TailwindCSS:
@tailwind base;
@tailwind components;
@tailwind utilities;

使用

按需导入

组件库支持按需导入,你可以只导入需要使用的组件:

import { Button } from 'tailwind-react-ui';

function App() {
  return (
    <Button variant="primary" size="medium">
      点击我
    </Button>
  );
}

组件示例

Button 按钮

import { Button } from 'tailwind-react-ui';

// 基础用法
<Button>默认按钮</Button>

// 不同变体
<Button variant="primary">主要按钮</Button>
<Button variant="secondary">次要按钮</Button>
<Button variant="outline">描边按钮</Button>

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

// 加载状态
<Button loading>加载中</Button>

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

API

Button

| 属性 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | variant | 按钮变体类型 | 'primary' | 'secondary' | 'outline' | 'primary' | | size | 按钮尺寸 | 'small' | 'medium' | 'large' | 'medium' | | loading | 加载状态 | boolean | false | | disabled | 禁用状态 | boolean | false | | className | 自定义类名 | string | - |

开发

# 安装依赖
npm install

# 启动开发服务器
npm run dev

# 运行测试
npm test

# 构建
npm run build

发布

# 登录到 npm
npm login

# 发布包
npm publish

许可证

MIT