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

vue-fluent-widgets

v1.0.1

Published

A collection of Fluent Design System (WinUI3) components for Vue

Downloads

527

Readme

Vue Fluent Widgets

Vue 3 Fluent Design 组件库,支持按需导入、全局插件注册和 TypeScript。

默认使用 Fluent Design 标准蓝色 #0078d4 和中性灰背景。内置蜜桃粉预设,通过 .peach 类启用。

安装

npm i vue-fluent-widgets

使用

全局注册:

import { createApp } from 'vue'
import VueFluentWidgets from 'vue-fluent-widgets'
import 'vue-fluent-widgets/style.css'
import App from './App.vue'

createApp(App)
  .use(VueFluentWidgets)
  .mount('#app')

按需导入:

<script setup>
import { FluentButton, FluentMediaPlayer } from 'vue-fluent-widgets'
</script>

<template>
  <FluentButton>保存</FluentButton>
  <FluentMediaPlayer
    src="/media/intro.mp4"
    poster="/images/intro.webp"
    show-minimize
    @minimize="continuePlaying"
  />
</template>

所有组件都支持标准 Vue 3 Props、Events 和 Slots 语法。vue-fluent-widgets 提供 TypeScript 类型声明,vue 和相关可选 peer dependencies 由宿主应用提供。

完整组件文档见仓库根目录 COMPONENTS.mdEnglish)。

主题

默认主题使用 Fluent 蓝色,FluentTheme 默认材质为 acrylic

<FluentTheme theme="system">
  <App />
</FluentTheme>

使用蜜桃粉预设:

<html class="peach">
  <FluentButton variant="primary">按钮</FluentButton>
</html>

MediaPlayer

FluentMediaPlayer 支持视频和音频、循环、倍速、音量、画中画、全屏以及跨路由播放接管。

minimize 事件会返回当前媒体的来源、进度、播放状态、音量、静音、倍速和循环状态,应用可以据此接入自己的常驻播放器。

组件不依赖 GSAP,但提供 elcontentElpauseInternalAnimation()resumeInternalAnimation() 实例接口,用户可以自行安装 GSAP 后接管动画:

<script setup>
import { onMounted, ref } from 'vue'
import gsap from 'gsap'

const player = ref()

onMounted(() => {
  player.value.pauseInternalAnimation()
  gsap.from(player.value.contentEl, {
    opacity: 0,
    y: 24,
    duration: 0.6,
    ease: 'power3.out'
  })
})
</script>

<template>
  <FluentMediaPlayer ref="player" src="/music.mp3" type="audio" />
</template>

许可证

MIT License

VueFluentWidgets Copyright (c) 2026 Cyrene2008

https://github.com/Cyrene2008/VueFluentWidgets