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

@lynneshao/dip-ui

v1.0.4

Published

一个基于 React + Ant Design 的 UI 组件库。

Readme

@aishu/dip-ui

一个基于 React + Ant Design 的 UI 组件库。

📦 安装

# 安装组件库
npm install @aishu/dip-ui

# 安装必需的 peerDependencies
npm install react react-dom antd @ant-design/icons

⚠️ 依赖要求

本组件库需要以下 peerDependencies:

  • react >= 18.0.0
  • react-dom >= 18.0.0
  • antd >= 6.0.0
  • @ant-design/icons >= 6.1.0

注意:这些依赖需要由使用方自行安装,组件库不会自动安装它们。

🚀 快速开始

import { DipHeader } from '@aishu/dip-ui'
import type { BreadcrumbItem } from '@aishu/dip-ui'

const breadcrumbItems: BreadcrumbItem[] = [
  {
    key: 'home',
    icon: '/icon.png',
    name: '首页',
    path: '/',
  },
]

function App() {
  return <DipHeader username="admin" breadcrumbItems={breadcrumbItems} />
}

🎨 Tailwind CSS 配置

本组件库使用 Tailwind CSS,使用方需要配置 Tailwind。

重要:在 tailwind.config.jscontent 中必须包含组件库路径:

// tailwind.config.js
export default {
  content: [
    './src/**/*.{js,jsx,ts,tsx}',
    './node_modules/@aishu/dip-ui/dist/**/*.js', // 重要:包含组件库路径
  ],
}

说明

  • 组件库使用 Tailwind 的任意值语法(如 px-[13px]h-[52px]
  • 不需要额外的自定义配置
  • 只需要确保 content 路径包含组件库即可

详细说明请查看 Tailwind CSS 配置指南

📚 文档

🔧 开发

# 开发模式
yarn dev

# 构建
yarn build

# 预览构建结果
yarn preview

📝 License

MIT