@vue-composable/web
This package contains Web API
vue-next
Installing
# install with yarn
yarn add @vue/composition-api @vue-composable/web
# install with npm
npm install @vue/composition-api @vue-composable/web
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
Breakpoint
-
MatchMedia - reactive
MatchMedia
-
Breakpoint - reactive
breakpoints
based onwindow.innerWidth
- Chrome - reactive chrome breakpoints
- TailwindCSS - reactive TailwindCSS breakpoints
MISC
-
sharedRef - cross-tab reactive
ref
Intl
- numberFormat - Intl.NumberFormat
- currencyFormat - CurrencyFormat with Intl.NumberFormat
Storage
-
WebStorage - Reactive access to
Storage API
,useLocalStorage
anduseSessionStorage
use this -
storage - uses
localStorage
or on safari private it usessessionStorage
-
localStorage - Reactive access to a
localStorage
-
sessionStorage - Reactive access to a
sessionStorage
Web
-
Fetch - reactive
fetch
wrapper -
WebSocket - reactive
WebSocket
wrapper -
IntersectionObserver - reactive
IntersectionObserver
-
NetworkInformation - reactive
NetworkInformation
wrapper -
Online - reactive
navigator.onLine
wrapper -
PageVisibility - reactive
Page Visibility API
-
Language - reactive
NavigatorLanguage
-
BroadcastChannel - reactive
BroadcastChannel API
- Geolocation API
-
CSS variables - reactive
CSS variables
-
Worker -
Web Worker API
- WorkerFunction - Webworker Function, offload a function to webworker
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