@morpheme/rating
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.4 • Public • Published

Vue Rating Component

Based on vue-star-rating to work with Vite, Vue 3 and Nuxt 3.

Installation

npm i @morpheme/rating

Usage

<script setup lang="ts">
import {ref} from 'vue';
import {Rating} from '@morpheme/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

Package Sidebar

Install

npm i @morpheme/rating

Weekly Downloads

81

Version

1.0.0-rc.4

License

MIT

Unpacked Size

85.8 kB

Total Files

24

Last publish

Collaborators

  • gravitano