Skip to content

Version 2.1.0

Latest
Compare
Choose a tag to compare
@craigh411 craigh411 released this 08 Oct 13:41
· 5 commits to master since this release
  • New animate prop added which slightly rotates and expands the star on mouseover
  • New active-on-click prop applies active colors on click rather than on hover when set to true
  • New active-border-color prop, which allows border colour to be changed when star is active (issue #34)
  • active-color and active-border-color now optionally accept an array of color values to color each star individually
  • glow no longer requires glow-color to be set (thanks to @bifot)
  • Screen readers are now supported. You can change the default message ("Rated {{rating}} out of {{maxRating}} stars") by using the screen-reader scoped slot:
<star-rating>
    <template v-slot:screen-reader="slotProps">
        This product has been rated {{slotProps.rating}} out of {{slotProps.stars}} stars
    </template>
</star-rating>