Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vueuse

> 前端框架
Open source

Collection of essential Vue Composition Utilities for Vue 3

22.3K stars0 likes2 views
WebsiteGitHub

About

Collection of essential Vue Composition Utilities for Vue 3


Collection of essential Vue Composition Utilities


🚀 Features

  • 🎪 Interactive docs & demos
  • ⚡ Fully tree shakeable: Only take what you want, bundle size
  • 🦾 Type Strong: Written in TypeScript, with TS Docs
  • 🔋 SSR Friendly
  • 🌎 No bundler required: Usable via CDN
  • 🔩 Flexible: Configurable event filters and targets
  • 🔌 Optional Add-ons: Router, Firebase, RxJS, etc.

🦄 Usage

typescript
import { useLocalStorage, useMouse, usePreferredDark } from '@vueuse/core'

const { x, y } = useMouse()

// if user prefers dark theme
const isDark = usePreferredDark()

// persist state in localStorage
const store = useLocalStorage(
  'my-storage',
  {
    name: 'Apple',
    color: 'red',
  },
)

Refer to functions list or documentations for more details.

📦 Install

From v14.0, VueUse requires Vue v3.5+ From v13.0, VueUse requires Vue v3.3+ From v12.0, VueUse no longer supports Vue 2. Please use v11.x for Vue 2 support.

bash
npm i @vueuse/core

Add ons | Nuxt Module

Demos
  • Vite + Vue 3
  • Nuxt 3 + Vue 3
  • Webpack + Vue 3

CDN

xml
<script src="https://unpkg.com/@vueuse/shared"></script>

<script src="https://unpkg.com/@vueuse/core"></script>

It will be exposed to global as window.VueUse

🪴 Project Activity

🧱 Contribute

See the Contributing Guide

🌸 Thanks

This project is heavily inspired by the following awesome projects.

  • streamich/react-use
  • u3u/vue-hooks
  • logaretm/vue-use-web
  • kripod/react-hooks

And thanks to all the contributors on GitHub!

👨‍🚀 Contributors

Financial Contributors on Open Collective

📄 License

MIT License © 2019-PRESENT Anthony Fu

Issues· 379 open

View all issuesOpen on GitHub
  • #5301

    `computed` variant which is not recomputed unless some condition is true (or explicitly told so)

    Updated Sep 29, 2026
  • #5610

    BUG | `useIdle` | lastActive is not updated upon reset()

    good first issueUpdated Sep 20, 2026
  • #5588

    BUG | `useRouteParams` | useRouteParams infers transform parameter type from defaultValue

    has prUpdated Sep 16, 2026
  • #5637

    fix npm readme

    Updated Sep 16, 2026
  • #5636

    BUG | `useRouteQuery` | Internal state not rolled back when route navigation is cancelled

    pending triageUpdated Sep 15, 2026
  • #5634

    BUG | `watchPausable` | Vue 3.5+ watch "resume" is not the same as watchPausable

    pending triageUpdated Sep 14, 2026
  • #5629

    useVModel({ passive: true }) silently drops a prop change that arrives while isUpdating is set

    Updated Sep 9, 2026
  • #4929

    BUG | `createReusableTemplate` | Not compatible with the `vue-types` library

    pending triageUpdated Sep 9, 2026
  • #5620

    BUG | `onKeyStroke()` | Registers a capture listener when `passive: true`

    pending triageUpdated Sep 4, 2026
  • #5612

    feat(core): add useSSEStream — consume fetch-based SSE / streaming responses with POST support

    Updated Aug 28, 2026

> Tags

TypeScriptcomposableutility-libraryvuevue3

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架