JSPM

  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q80587F
  • License MIT

@vue-composable/web

Package Exports

  • @vue-composable/web

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vue-composable/web) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@vue-composable/web

npm version

This package contains Web API

Vue 3

This version is alpha with support for the vue3 (vue-next)

Check webpack vue3 example or CodeSandbox

Installing

# install with yarn
yarn add vue@next @vue-composable/web@next

# install with npm
npm install vue@next @vue-composable/web@next

Documentation

Check our documentation

Event

  • Event - Attach event listener to a DOM element
  • Mouse Move - Attach mousemove listener to a DOM element
  • Resize - Attach resize listener to a DOM element
  • Scroll - Attach scroll listener to a DOM element

MISC

Storage

  • WebStorage - Reactive access to Storage API, useLocalStorage and useSessionStorage use this
  • storage - uses localStorage or on safari private it uses sessionStorage
  • localStorage - Reactive access to a localStorage
  • sessionStorage - Reactive access to a sessionStorage

Web

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b feat/new-composable
  3. Commit your changes: git commit -am 'feat(composable): add a new composable'
  4. Push to the branch: git push origin feat/new-composable
  5. Submit a pull request

License

MIT