Package Exports
- vueposu
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 (vueposu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
VUEPOSU
Vue's Eternal Pose (永久指针, 永久指針エターナルポース, Etānaru Pōsu)
(A hooks library based on Vue composition-api)
📦 INSTALLATION
Works for both Vue 3 and 2, but if you are using vue2 must ensure installed @vue/composition-api
vue 3
npm i vueposu
# or
yarn add vueposuvue 2
npm i vueposu @vue/composition-api
# or
yarn add vueposu @vue/composition-api🍳 USAGE
import { useCounter } from 'vueposu';
const Component = defineComponent({
setup() {
// create a counter
const [count, { inc, dec, set, reset }] = useCounter(0);
return {
count,
inc,
dec,
set,
reset,
};
},
});🚀 API
Currently supported functions
DOM
- useTitle
- useClickAway
- useFavicon
- useAudio
- useBrowserTabChange
- useLocalStorage
- useMouse
- useScrollTo
- useCopyToClipboard
FUNCTIONALITY
- useTrace
- useSet
- useQueue
- useTimeout
- useInterval
- useRaf
- useEventEmitter
- useCounter
- useCounterInterval
- useCalculator
- useDynamicList
- useDebounce
- useDebounceFn
- useDebounceEffect
- useThrottle
- useThrottleFn
- useThrottleEffect
- useToggle
- useSwr
- etc..