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
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@nextDocumentation
Check our documentation
Event
- Event - Attach event listener to a DOM element
- Mouse Move - Attach
mousemovelistener to a DOM element - Resize - Attach
resizelistener to a DOM element - Scroll - Attach
scrolllistener to a DOM element
MISC
- matchMedia - Reactive
matchMedia - breakpoint - reactive
breakpointsbased onwindow.innerWidth
Storage
- WebStorage - Reactive access to
Storage API,useLocalStorageanduseSessionStorageuse this - storage - uses
localStorageor on safari private it usessessionStorage - localStorage - Reactive access to a
localStorage - sessionStorage - Reactive access to a
sessionStorage
Web
- Fetch - reactive
fetchwrapper - WebSocket - reactive
WebSocketwrapper - IntersectionObserver - reactive
IntersectionObserver - NetworkInformation - reactive
NetworkInformationwrapper - Online - reactive
navigator.onLinewrapper - PageVisibility - reactive
Page Visibility API - Language - reactive
NavigatorLanguage
Contributing
- Fork it!
- Create your feature branch:
git checkout -b feat/new-composable - Commit your changes:
git commit -am 'feat(composable): add a new composable' - Push to the branch:
git push origin feat/new-composable - Submit a pull request