Version 2 - Star Ratings for Vue 3!
vue-star-rating
can now be used with Vue 3! This means there are now 2 versions of vue-star-rating
You should continue to use vue-star-rating
version 1.6.x if you're using Vue 2, which will remain the default install via npm for the time being.
What's New?
Most changes are internal, but if you want to use vue-star-rating
in your Vue 3 app you will need to install using the next
tag:
npm install vue-star-rating@next
Vue 3 users now need to pass the rating
argument to v-model
<star-rating v-model:rating="rating" />
Custom Event Name Changes
The custom event names emitted by the component have been changed to the following:
- The
rating-selected
event has been renamed toupdate:rating
- The
current-rating
event has been renamed tohover:rating
See changelog for details of all internal changes