VueUse (original) (raw)
Add-ons โ
The core package aims to be lightweight and dependence free. While the add-ons are wrapping popular packages into the consistent API style.
Head - @vueuse/head โ
Document head manager for Vue 3. SSR ready. Created and maintained by @egoist
Motion - @vueuse/motion โ
Vue Composables putting your components in motion.
- ๐ Smooth animations based on Popmotion
- ๐ฎ Declarative API
- ๐ Plug & play with 10+ presets
- ๐ Supports Nuxt using nuxt-use-motion
- โจ Written in TypeScript
- ๐๏ธโโ๏ธ Lightweight with <20kb bundle size
Created and maintained by @Tahul
Gesture - @vueuse/gesture โ
Vue Composables making your app interactive
- ๐ Plug & play
- ๐น Mouse & Touch support
- ๐ฎ Directives support (v-drag, v-pinch, v-move...)
- โจ Written in TypeScript
- ๐คน Plays well with vueuse/motion or any other animation solution
Created and maintained by @Tahul
Sound - @vueuse/sound โ
Vue composables for playing sound effects.
- ๐ Lets your website communicate using 2 human senses instead of 1
- ๐ฅ Built with Vue Composition API
- ๐ Supports Nuxt 3 using @vueuse/sound/nuxt
- โก๏ธ <1kb bytes (gzip) in your bundle! ~10kb loaded async.
- โจ Built with TypeScript
- ๐ฃ Uses a powerful, battle-tested audio utility: Howler.js
Created and maintained by @Tahul
SchemaOrg - @vueuse/schema-org โ
Schema.org for Vue. Supports typed and automated Google Rich Results
- ๐ No Schema knowledge required, get up and running in minutes with minimal configuration
- โจ 20+ Typed Schemas for best practice (Google, Yoast) Rich Results
- ๐ง Automated Schema:
@id
, URL / date resolving, route meta and more - ๐ค Integrations for VitePress, Nuxt, Vitesse and Vite with auto-imports
- ๐ Choose your preferred API: Composables or Components
- ๐ณ SSR, tree-shaking and Schema inheritance ready
Created and maintained by @harlan-zw
Router - @vueuse/router โ
Utilities for vue-router
- useRouteHash โ shorthand for a reactive
route.hash
- useRouteParams โ shorthand for a reactive
route.params
- useRouteQuery โ shorthand for a reactive
route.query
Integrations - @vueuse/integrations โ
Integration wrappers for utility libraries
- useAsyncValidator โ wrapper for async-validator
- useAxios โ wrapper for axios
- useChangeCase โ reactive wrapper for change-case
- useCookies โ wrapper for universal-cookie
- useDrauu โ reactive instance for drauu
- useFocusTrap โ reactive wrapper for focus-trap
- useFuse โ easily implement fuzzy search using a composable with Fuse.js
- useIDBKeyval โ wrapper for idb-keyval
- useJwt โ wrapper for jwt-decode
- useNProgress โ reactive wrapper for nprogress
- useQRCode โ wrapper for qrcode
- useSortable โ wrapper for sortable
RxJS - @vueuse/rxjs โ
Enables RxJS reactive functions in Vue
- from โ wrappers around RxJS's from() and fromEvent() to allow them to accept
ref
s - toObserver โ sugar function to convert a
ref
into an RxJS Observer - useExtractedObservable โ use an RxJS Observable as extracted from one or more composables
- useObservable โ use an RxJS Observable
- useSubject โ bind an RxJS Subject to a
ref
and propagate value changes both ways - useSubscription โ use an RxJS Subscription without worrying about unsubscribing from it or creating memory leaks
- watchExtractedObservable โ watch the values of an RxJS Observable as extracted from one or more composables
Firebase - @vueuse/firebase โ
Enables realtime bindings for Firebase
- useAuth โ reactive Firebase Auth binding
- useFirestore โ reactive Firestore binding
- useRTDB โ reactive Firebase Realtime Database binding
Electron - @vueuse/electron โ
Electron renderer process modules for VueUse
- useIpcRenderer โ provides ipcRenderer and all of its APIs
- useIpcRendererInvoke โ reactive ipcRenderer.invoke API result
- useIpcRendererOn โ use ipcRenderer.on with ease and ipcRenderer.removeListener automatically on unmounted
- useZoomFactor โ reactive WebFrame zoom factor
- useZoomLevel โ reactive WebFrame zoom level