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

@ichaingo/ui

v1.5.37

Published

这是一个使用 Tailwind CSS 构建的现代化 UI 组件库。

Readme

@ichaingo/ui

这是一个使用 Tailwind CSS 构建的现代化 UI 组件库。

安装

npm install @ichaingo/ui
# 或
yarn add @ichaingo/ui
# 或
pnpm add @ichaingo/ui

使用方法

导入整个库

import { Button, Card, Input } from '@ichaingo/ui';

按需导入单个组件

你也可以按需导入单个组件,这样可以减少打包体积:

// 导入单个组件
import { Button } from '@ichaingo/ui/button';
import { Card } from '@ichaingo/ui/card';
import { Input } from '@ichaingo/ui/input';
import { Dialog } from '@ichaingo/ui/dialog';
import { Form } from '@ichaingo/ui/form';

可用的组件入口

  • @ichaingo/ui/accordion - 手风琴组件
  • @ichaingo/ui/alert - 警告组件
  • @ichaingo/ui/alert-dialog - 警告对话框
  • @ichaingo/ui/aspect-ratio - 宽高比组件
  • @ichaingo/ui/avatar - 头像组件
  • @ichaingo/ui/badge - 徽章组件
  • @ichaingo/ui/breadcrumb - 面包屑导航
  • @ichaingo/ui/button - 按钮组件
  • @ichaingo/ui/calendar - 日历组件
  • @ichaingo/ui/card - 卡片组件
  • @ichaingo/ui/carousel - 轮播图组件
  • @ichaingo/ui/checkbox - 复选框组件
  • @ichaingo/ui/collapsible - 可折叠组件
  • @ichaingo/ui/command - 命令组件
  • @ichaingo/ui/context-menu - 上下文菜单
  • @ichaingo/ui/dialog - 对话框组件
  • @ichaingo/ui/dropdown-menu - 下拉菜单
  • @ichaingo/ui/form - 表单组件
  • @ichaingo/ui/hover-card - 悬停卡片
  • @ichaingo/ui/input - 输入框组件
  • @ichaingo/ui/label - 标签组件
  • @ichaingo/ui/menubar - 菜单栏
  • @ichaingo/ui/navigation-menu - 导航菜单
  • @ichaingo/ui/pagination - 分页组件
  • @ichaingo/ui/popover - 弹出框组件
  • @ichaingo/ui/progress - 进度条组件
  • @ichaingo/ui/radio-group - 单选按钮组
  • @ichaingo/ui/resizable - 可调整大小组件
  • @ichaingo/ui/scroll-area - 滚动区域
  • @ichaingo/ui/select - 选择器组件
  • @ichaingo/ui/separator - 分隔符组件
  • @ichaingo/ui/sheet - 侧边栏组件
  • @ichaingo/ui/skeleton - 骨架屏组件
  • @ichaingo/ui/slider - 滑块组件
  • @ichaingo/ui/sonner - 通知组件
  • @ichaingo/ui/switch - 开关组件
  • @ichaingo/ui/table - 表格组件
  • @ichaingo/ui/tabs - 标签页组件
  • @ichaingo/ui/textarea - 文本域组件
  • @ichaingo/ui/toggle-group - 切换按钮组
  • @ichaingo/ui/toggle - 切换按钮
  • @ichaingo/ui/tooltip - 工具提示

样式

确保在你的项目中引入了 Tailwind CSS:

@import '@ichaingo/ui/styles.css';

开发

# 安装依赖
pnpm install

# 构建库
pnpm build

# 运行测试
pnpm test

# 运行 Storybook
pnpm storybook