Appearance
DisplayRating
A score shown as stars, with a text alternative. To let the visitor choose the score use FormRating.
ts
import { DisplayRating } from '@zairakai/vue-components/Display'Usage
vue
<DisplayRating />Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | ||
class | string | ||
value | number | 0 | The score, from 0 to max, with halves. |
max | number | 5 | |
label | string | '{value} out of {max}' | The text read for the score. Use {value} and {max}. |
Slots
| Name | Description |
|---|---|
default |
See Theming for the class hooks and the data-* state of the components.