svelte-rating-svg

Scalable stars-rating component for Svelte





Rating:
0.00
Color:
Stars:

Installation

npm install svelte-rating-svg

Usage

<Rating/> <script> import Rating from 'svelte-rating-svg' </script>

Properties

value - Value between 0 and 1

color - Color of stars

max - Maximum number of stars

duration - Filling of rating duration in seconds



Examples

<Rating value="0.5" color="green" max="3"/>
<Rating value="0.9" color="#AAA" duration="10000"/>
<Rating value="0.4321" max="1"/>