The Principal Dev – Masterclass for Tech Leads

The Principal Dev – Masterclass for Tech LeadsJuly 17-18

Join

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

NPM version NPM Downloads Docs & Demos Function Count
GitHub stars

🚀 Features

ðŸĶ„ Usage

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 v12.0, VueUse no longer supports Vue 2. Please use v11.x for Vue 2 support.

npm i @vueuse/core

Add ons | Nuxt Module

Demos

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.

And thanks to all the contributors on GitHub!

ðŸ‘Ļ‍🚀 Contributors

Financial Contributors on Open Collective

📄 License

MIT License ÂĐ 2019-PRESENT Anthony Fu

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.