Elements Rating
Back to Elements

Rating

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

rating

Star rating input.

Prop Type Default Description
ref bind: HTMLElement | null null
value bind: number 0
max number 5
readonly boolean false
size "sm" | "default" | "lg" | "xl" "default"
class as className string
onchange
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.