Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

Star Rating Component Svelte

A Simple on hover rating component for svelte.

Demo

demo

To use 🔧

If using Svelte:

npm install svelte-stars-hover-rating

If using Sapper (install as a dev dependency):

npm install -D svelte-stars-hover-rating

And import it into your file:

<script>
  import {Rating} from 'svelte-stars-hover-rating';
  let rate=null
</script>

<Rating bind:rating={rate} />

Props:

Prop Type Default Required Description
num Number - No The number of stars. Default is 5
rating Number - No Passes back the rating value inputted by user

About

A simple Svelte component created to capture the rating from user input on hover, and feedback the value.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages