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

@yh-ui/components

v1.0.63

Published

YH-UI Vue 3 Components

Readme

@yh-ui/components

YH-UI 的 Vue 3 组件包。它不仅包含按钮、表单、弹层、导航这类基础组件,也覆盖 AI 交互、复杂表格、业务展示和电商场景,适合直接搭建中后台、运营工具、AI 产品和复杂业务页面。

Documentation | Components | Releases

Highlights

  • 覆盖面完整:Layout、Form、Data Display、Feedback、Navigation、ConfigProvider、Typography、Table、AI Components 和业务组件统一导出。
  • AI 组件是内建能力:YhAiChatYhAiBubbleYhAiSenderYhAiThoughtChainYhAiArtifactsYhAiAttachmentsYhAiMermaidYhAiSources 等组件可以直接组合成 AI 工作台。
  • Table 面向高密度业务:列配置、选择、排序、工具栏、导出、打印、虚拟滚动等能力和 YH-UI 主题体系统一。
  • 自有业务组件:YhSmartAddressYhSkuSelectorYhProductCardYhCouponCardYhLuckyDrawYhCategoryNavYhGanttChart 等用于减少重复业务封装。
  • 主题响应:组件消费 @yh-ui/theme 的 CSS 变量,支持暗色、密度、预设主题和运行时切换。
  • TypeScript 和 SSR 友好:组件导出类型声明,核心 DOM 访问经过客户端保护,适合 Vite 和 Nuxt 场景。

Install

pnpm add @yh-ui/components

For the complete package with styles, hooks, theme and locale included, use:

pnpm add @yh-ui/yh-ui

Usage

import { createApp } from 'vue'
import { YhButton, YhTable } from '@yh-ui/components'
import '@yh-ui/components/style.css'

const app = createApp(App)
app.component('YhButton', YhButton)
app.component('YhTable', YhTable)
app.mount('#app')

Auto Import

import Components from 'unplugin-vue-components/vite'
import { YhUIResolver } from '@yh-ui/components/resolver'

export default {
  plugins: [
    Components({
      resolvers: [YhUIResolver()]
    })
  ]
}

Component Families

| Area | Examples | | ---------- | --------------------------------------------------------------------------------- | | Basic | YhButton, YhIcon, YhTypographyTitle, YhSpace, YhDivider | | Form | YhForm, YhInput, YhSelect, YhDatePicker, YhUpload, YhTransfer | | Data | YhTable, YhTree, YhCalendar, YhWaterfall, YhCountdown, YhGanttChart | | Feedback | YhMessage, YhNotification, YhDialog, YhDrawer, YhLoading, YhResult | | Navigation | YhMenu, YhTabs, YhSteps, YhBreadcrumb, YhDropdown, YhPagination | | AI | YhAiChat, YhAiBubble, YhAiSender, YhAiThoughtChain, YhAiProvider | | Business | YhSmartAddress, YhSkuSelector, YhProductCard, YhCouponCard, YhLuckyDraw |

AI Example

<script setup lang="ts">
import { YhAiBubble, YhAiSender } from '@yh-ui/components'
</script>

<template>
  <YhAiBubble role="assistant" content="Hello from YH-UI" />
  <YhAiSender placeholder="Ask anything" />
</template>

License

MIT