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

@94ai-plus/nf-tag

v1.0.0

Published

Vue 3 status tag with six legacy variants, status dot and dual themes

Readme

@94ai-plus/nf-tag

HomePage

官网 · 项目仓库

Vue 3 原生标签组件,保留 disabled/success/info/warning/danger/tip 六种状态、小圆点、文本回退及点击交互。

import NfTag from '@94ai-plus/nf-tag'
import '@94ai-plus/nf-theme-chalk/nf-tag.css'

app.use(NfTag)
<nf-tag type="success" value="已通过" @click="onClick" />
<nf-tag type="info" :circle="false">默认插槽优先于 value</nf-tag>

三个属性及默认值:type=undefined(无状态样式)、value=''、circle=true。value 是普通文本而不是 HTML,默认插槽可放自定义内容;原始 MouseEvent 作为 click 参数传出,事件只触发一次。type="disabled" 仅为视觉状态,不禁用点击,也不改变原生鼠标事件传播。

保留原生 div 根节点、22px 行高、12px 字号、2px 圆角及 4px 圆点;圆点对辅助技术隐藏。标签不自动获得按钮语义或键盘行为,需要可操作控件时应使用按钮/链接并提供对应语义。

OEM 主题引入 @94ai-plus/nf-theme-oem/nf-tag.css 并设置 theme="oem"(NfConfigProvider)或 data-nf-theme="oem"。动态切换需预先加载两套主题 CSS。Chalk info 文字/圆点保留旧版 #0b73ff,OEM 跟随主题主色(默认 #007555),其余状态颜色不变。

组件没有内置业务文案,国际化通过 value 或默认插槽传入,不自动翻译;无需 Element UI 或 Element Plus 运行时。支持总包、按需导入、GlobalComponents 类型和自动导入解析器。

全局默认配置

通过总包的 NfConfigProvider 的 nfTag 配置项设置默认属性。支持响应式更新和嵌套继承,优先级为组件显式属性 → 最近一层配置 → 外层配置 → 组件原有默认值。undefined 继续继承,false、0 和空字符串保留;按属性合并,数组、对象和函数整体替换,不深度合并。初始化选项仍按组件原有生命周期生效,事件、插槽和原生 attributes 在组件上设置,必填业务数据仍需显式提供。详见全局配置文档。

Contributors

感谢每一位参与项目建设的贡献者!

最近三个月的贡献者气泡图

最近三个月的贡献者头像墙(使用姓名首字母)

以上为随本版本发布的贡献者统计快照,统计日期与分支见图中说明;仅统计 Git 非合并提交,头像使用姓名首字母,不是 GitLab 个人照片。

License

本项目采用 MIT License 开源许可。

Copyright (c) 2026-present Jiahe Zou, 94 Intelligent Technology Co., Ltd.