Star Rating

A simple star rating component.

Component Source

Basic

The <StarRating/> component builds on top of the bits-ui <RatingGroup/> component so it has all the behaviors you'd expect.

Rating is 0

Installation

			jsrepo add ui/star-rating
		

Usage

{#snippet children({ items })} {#each items as item (item.index)} {/each} {/snippet}

Custom Stars

You can have an arbitrary number of stars.

Half Rating

You can also have half ratings. And they even work in RTL!

Rating is 3.5
تقييم بالنجوم (RTL)

Disabled

Readonly

Custom Color

Custom Size