Rating

Lets users rate items using stars in a simple, interactive way. Provides immediate visual feedback and supports partial or full selections.

Examples

Props

NameDefaultType
modelValue
0number

The current rating value (controlled)

rating_from
5number

Minimum rating value (default is 0 or 1 depending on implementation)

label
-string

Optional label displayed alongside the rating

readonly
falseboolean

If true, disables interaction and makes the rating read-only

size
"md""sm" | "md" | "lg" | "xl"

Size of the rating component

Emit Events

EventPayload
update:modelValue
any[]