0.2.0 • Published 3 years ago

ladariha-button v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

universal-button written in Vue3

How to use it

  • no BUILD! The component is published as NPM package in form of source code
  • never import anything in this project from vue or @vue/composition-api, instead use vue-demi
  • add dependency:
yarn add ladariha-button
  • import vue file directly
import MyButton from "ladariha-button/src/components/MyButton.vue";

Sample usage in Vue2 project:

<template>
  <div id="app">
    <MyButton />
    Reactive number: {{ randomNumber }}
  </div>
</template>

<script lang="ts">
import MyButton from "ladariha-button/src/components/MyButton.vue";
import { defineComponent, ref } from "@vue/composition-api";

export default defineComponent({
  name: "App",
  components: {
    MyButton,
  },
  setup() {
    const randomNumber = ref(Math.random());

    setInterval(() => {
      randomNumber.value = Math.random();
    }, 3000);

    return { randomNumber };
  },
});
</script>
0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago