Components
BaseRating
A read-only star rating with half stars.
components/ui/BaseRating.vue
View in the demo
Example
API
Props
Name | Type | Default | Description |
|---|---|---|---|
valuerequired | number | — | The rating. |
length | number | 5 | Number of stars. |
size | "default" | "small" | "x-small" | "default" | default, small or x-small. |
half-increments | boolean | true | Rounds to half stars instead of whole ones. |
Accessibility
It renders as an image with the rating in its accessible name, such as “4.5 out of 5”.