Skip to content

Vue 3 support now added

Compare
Choose a tag to compare
@SinanMtl SinanMtl released this 13 Apr 23:21
· 1 commit to master since this release

With this release, you can use vue-rate with Vue 3 πŸŽ‰
Related issue #30

Usage

npm install vue-rate@next
// or
yarn add vue-rate@next
import { createApp } from 'vue'
import rate from 'vue-rate'
import 'vue-rate/dist/vue-rate.css'

createApp(App)
  .use(rate)
  .mount('#app')
<template>
<rate :length="5" v-model="myRate" />
</template>

<script setup>
  import { ref } from 'vue';
  const myRate = ref(0);
<script>