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

prd-ui

v1.0.0

Published

基于Vue 3.5 + TypeScript的UI组件库

Readme

PrdUI

基于 Vue 3.5 + TypeScript 的现代化 UI 组件库,支持 pnpm 包管理,适用于 Node.js 18+ 环境。

特性

  • ✅ 基于 Vue 3.5 + TypeScript 开发
  • ✅ 支持 pnpm 包管理
  • ✅ 支持全量导入和按需导入
  • ✅ 支持主题定制
  • ✅ 完善的类型定义
  • ✅ 现代化的设计风格
  • ✅ 响应式设计
  • ✅ 支持 Tree Shaking

安装

# 使用 pnpm 安装
pnpm add prd-ui

# 使用 npm 安装
npm install prd-ui

# 使用 yarn 安装
yarn add prd-ui

快速开始

全量导入

// main.js
import { createApp } from 'vue';
import PrdUI from 'prd-ui';
import 'prd-ui/lib/index.css';
import App from './App.vue';

const app = createApp(App);
app.use(PrdUI);
app.mount('#app');

按需导入

// main.js
import { createApp } from 'vue';
import App from './App.vue';

const app = createApp(App);
app.mount('#app');
<!-- App.vue -->
<template>
	<prd-button type="primary">Primary Button</prd-button>
</template>

<script setup>
import { Button as PrdButton } from 'prd-ui';
import 'prd-ui/components/Button/style/index.css';
</script>

组件列表

| 组件名 | 描述 | 状态 | | ------ | -------- | --------- | | Button | 按钮组件 | ✅ 已完成 | | - | - | - | | - | - | - |

浏览器支持

  • Chrome (最新版)
  • Firefox (最新版)
  • Safari (最新版)
  • Edge (最新版)

开发

启动开发服务器

# 安装依赖
pnpm install

# 启动开发服务器
pnpm run dev

# 访问地址
# http://localhost:5173/

构建和测试

# 构建库(CommonJS)
pnpm run build:lib

# 构建 ES 模块
pnpm run build:es

# 类型检查
pnpm run typecheck

# 代码检查
pnpm run lint

项目结构

prd-ui/
├── components/          # 组件目录
│   ├── Button/         # Button组件
│   ├── style/          # 全局样式
│   ├── _util/          # 工具函数
│   └── index.ts        # 组件库入口
├── hooks/              # 自定义hooks
├── scripts/            # 构建脚本
├── tests/              # 测试目录
├── index.html          # 开发测试页面
├── main.ts             # 开发测试入口
├── App.vue             # 开发测试组件
├── package.json        # 项目配置
├── tsconfig.json       # TypeScript配置
├── vite.config.ts      # Vite配置
└── README.md           # 项目文档

贡献

欢迎提交 Issue 和 Pull Request!

请阅读 CONTRIBUTING.md 了解更多。

许可证

MIT License

作者

ZhangHF ([email protected])