Awesome-Creators/vueposu

Repository files navigation


logo

🧭  Vue's Eternal Pose (永久指针, 永久指針エターナルポース, Etānaru Pōsu)
(A hooks library based on Vue Composition-API)

workflow codecov


Vueposu supports both Vue 3 and 2, but if you are using Vue 2 must ensure installed @vue/composition-api.

# install with npm
npm i vueposu

# install with yarn
yarn add vueposu
# install with npm
npm i vueposu @vue/composition-api

# install with yarn
yarn add vueposu @vue/composition-api

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,
    };
  },
});

Currently supported functions:


In no particular order, vueposu is inspired by these great awesome works:


The MIT License.