@gits-id/rating
v1.0.0-beta.4
Published
Vue Rating Component
Downloads
14
Maintainers
Readme
Vue Rating Component
Based on vue-star-rating to work with Vite, Vue 3 and Nuxt 3.
Installation
npm i @gits-id/rating
Usage
<script setup lang="ts">
import {ref} from 'vue';
import {Rating} from '@gits-id/rating';
const value = ref(0);
</script>
<template>
<Rating v-model:rating="value" />
<!-- half stars -->
<Rating v-model:rating="value" :increment="0.5" />
</template>
License
MIT