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

vue3-status-indicator

v1.1.1

Published

vue3 status indicator

Readme

vue3-status-indicator

这是一个Vue3版本的状态指示灯组件, 受项目vue-status-indicator 的启发,使用vue3 + Ts + vite

安装

# Install with pnpm
$ pnpm i vue3-status-indicator -S
# or npm
$ npm i vue3-status-indicator -S

使用

1. Preview

Please Look Here

2. 导入

  • 使用局部导入:
// 在.vue文件中
<script setup lang="ts">
  import { Vue3StatusIndicator } from 'vue3-status-indicator'
  import 'vue3-status-indicator/dist/style.css'
</script>
  • 使用全局导入
// 在main.ts中
import { Vue3StatusIndicator } from 'vue3-status-indicator'
import 'vue3-status-indicator/dist/style.css'

// 注册为全局组件使用
app.component('vue3-status-indicator', Vue3StatusIndicator);

3. 使用方式

  • 方式一: 传入具体的色值
primary: <Vue3StatusIndicator bg-color="#326CD6" />
success: <Vue3StatusIndicator bg-color="#4FAD59" />
error:   <Vue3StatusIndicator bg-color="#e4393c" />
warning: <Vue3StatusIndicator bg-color="orange" />
primary: <vue3-status-indicator bg-color="#326CD6" />
  • 方式二: 使用默认的type
primary: <Vue3StatusIndicator type="primary" />
success: <Vue3StatusIndicator type="success" />
error:   <Vue3StatusIndicator type="error" />
warning: <Vue3StatusIndicator type="warning" />
primary: <vue3-status-indicator type="primary" />
<!-- 停止呼吸动画, 设置pause属性为true -->
primary: <vue3-status-indicator type="primary" :pause="true" />

Tips: 不建议两种方式同时使用, 否则会以传入的type为准

4. 兼容性

支持最新版本的 Chrome/Firefox/Safari

5. 属性/Props

|名称|描述|类型|默认|是否必须| |---|---|---|---|---| |type|默认提供的类型|String|""|false| |bgColor|自定义色值|String|#326CD6|false| |pause|是否停止呼吸动画|Boolean|false|false|

License

MIT license