Rating
Lets users rate items using stars in a simple, interactive way. Provides immediate visual feedback and supports partial or full selections.
Examples
Props
| Name | Default | Type |
|---|---|---|
modelValue | 0 | number The current rating value (controlled) |
rating_from | 5 | number Minimum rating value (default is 0 or 1 depending on implementation) |
label | - | string Optional label displayed alongside the rating |
readonly | false | boolean If true, disables interaction and makes the rating read-only |
size | "md" | "sm" | "md" | "lg" | "xl" Size of the rating component |
Emit Events
| Event | Payload |
|---|---|
update:modelValue | any[] |