GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FateOrg/vueuse: Collection of essential Vue Composition Utilities for Vue 2 and 3

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,899 Commits
1,899 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
meta
meta
 
 
packages
packages
 
 
playgrounds
playgrounds
 
 
scripts
scripts
 
 
.editorconfig
.editorconfig
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.gitpod.yml
.gitpod.yml
 
 
.npmrc
.npmrc
 
 
.tazerc.json
.tazerc.json
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
netlify.toml
netlify.toml
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
rollup.config.js
rollup.config.js
 
 
tsconfig.json
tsconfig.json
 
 
unocss.config.ts
unocss.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

VueUse - Collection of essential Vue Composition Utilities VueUse - Collection of essential Vue Composition Utilities
Collection of essential Vue Composition Utilities

NPM version NPM Downloads Docs & Demos Function Count
GitHub stars

🚀 Features

  • 🎊 Interactive docs & demos
  • ðŸ•ķ Seamless migration: Works for both Vue 3 and 2
  • ⚡ 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

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

export default {
  setup() {
    // tracks mouse position
    const { x, y } = useMouse()

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

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

    return { x, y, isDark, store }
  },
}

Refer to functions list or documentations for more details.

ðŸ“Ķ Install

ðŸŽĐ From v4.0, it works for Vue 2 & 3 within a single package by the power of vue-demi!

npm i @vueuse/core

Add ons | Nuxt Module

From v6.0, VueUse requires vue >= v3.2 or @vue/composition-api >= v1.1

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

CDN

<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

Alt

ðŸ§ą 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

About

Collection of essential Vue Composition Utilities for Vue 2 and 3

vueuse.org

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.