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

xiaoxu-ui

v1.0.6

Published

Xiaoxu UI - A Vue 3 Component Library

Readme

Xiaoxu UI 组件库

npm version license

Xiaoxu UI - 基于 Vue 3 构建的现代化企业级 UI 组件库。

特性

  • 🚀 基于 Vue 3 Composition API
  • 📦 支持按需引入
  • 🎨 主题定制
  • 💪 完整的 TypeScript 支持
  • 📱 响应式设计

安装

npm install xiaoxu-ui
# 或
yarn add xiaoxu-ui
# 或
pnpm add xiaoxu-ui

快速开始

全局引入

import { createApp } from 'vue'
import XiaoxuUI from 'xiaoxu-ui'
import 'xiaoxu-ui/style.css'

const app = createApp(App)
app.use(XiaoxuUI)

按需引入

import { XButton, XTable, XForm } from 'xiaoxu-ui'
import 'xiaoxu-ui/style.css'

// 在组件中使用
export default {
  components: {
    XButton,
    XTable,
    XForm
  }
}

组件列表

  • 基础组件

    • X-Button - 按钮
    • X-Icon - 图标
    • X-Tag - 标签
  • 表单组件

    • X-Form - 表单
    • X-FormItem - 表单项
    • X-Input - 输入框
    • X-Select - 选择器
    • X-Cascader - 级联选择器
    • X-Switch - 开关
    • X-Checkbox - 多选框
    • X-CheckboxGroup - 多选框组
    • X-Radio - 单选框
    • X-RadioGroup - 单选框组
  • 数据展示

    • X-Table - 表格
    • X-TableColumn - 表格列
    • X-Card - 卡片
    • X-Steps - 步骤条
  • 反馈组件

    • X-Dialog - 对话框
    • X-Message - 消息提示
    • X-Loading - 加载

全局 API

Message 消息提示

import { Message } from 'xiaoxu-ui'

// 或在 Vue 应用中
app.config.globalProperties.$message.success('操作成功')

Loading 加载

// 使用指令
<div v-loading="isLoading">内容</div>

// 使用 API
import { Loading } from 'xiaoxu-ui'
const loading = Loading.service({ text: '加载中...' })
loading.close()

主题定制

组件库使用 CSS 变量实现主题定制,可以通过覆盖 CSS 变量来自定义主题:

:root {
  --color-primary: #128cff;
  --color-success: #67c23a;
  --color-warning: #e6a23c;
  --color-danger: #f56c6c;
  --color-info: #909399;
}

TypeScript 支持

组件库提供完整的 TypeScript 类型定义:

import type { XButtonProps, XTableProps } from 'xiaoxu-ui'

开发

# 安装依赖
npm install

# 开发模式
npm run dev

# 构建组件库
npm run build:lib

浏览器兼容性

  • 现代浏览器
  • Chrome >= 87
  • Firefox >= 78
  • Safari >= 14
  • Edge >= 88

更新日志

v0.1.0 (2025-07-18)

🎉 首次发布

  • 新增 20+ 基础组件
  • 完整的 TypeScript 支持
  • 支持按需引入
  • 提供 ES Module 和 UMD 两种构建版本
  • 完善的文档和示例

贡献指南

欢迎贡献代码!请先阅读我们的贡献指南

问题反馈

许可证

MIT © 2025 Xiaoxu UI Team