Star Rating
llms.txtExample
Usage
<StarRating rating={4} changeable />
API Reference
StarRating
An interactive star rating component with customizable appearance.
Property Type Description
rating required $bindable
number
The current rating value (0-5).
changeable
boolean
Whether the user can change the rating by clicking. Default:
truesize
string
Tailwind size class for the stars. Default:
'size-8'strokeWidth
number
The stroke width of the star SVG outlines. Default:
0.8buttonClasses
string
Additional CSS classes for each star button. Default: —
svgClasses
string
Additional CSS classes for each star SVG. Default: —
class
string
Additional CSS classes to apply to the container. Default: —
ref $bindable
HTMLElement
The underlying DOM element. Default: —
Property
rating
changeable
size
strokeWidth
buttonClasses
svgClasses
class
ref