Rate
A quick rating operation on something
With MDI
With Font Awesome
# Custom Rate
# API
Rate
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | Number | — | 0 |
max | Max rating score | Number | — | 5 |
icon | to specify the icon | String | — | star |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fab , fad , fal | mdi |
size | Include show-text , show-score and custom-text , optional | String | is-small , is-medium , is-large | — |
rtl | Change text direction show-text , show-score and custom-text to left | Boolean | — | false |
spaced | Added spacing for icons | Boolean | — | false |
disabled | Read only, if true Support decimal value | Boolean | — | false |
show-score | Display value | Boolean | — | false |
show-text | Display texts template. show-score and show-text cannot be true at the same time | Boolean | — | false |
custom-text | Display custom text like a total points or total reviews, and this only for show-score | String | — | — |
texts | Texts template only for show-text , like on e-commerce | Array | — | — |
locale | Accept a string with a BCP 47 language tag, or an array of such strings. See Unicode BCP 47 locale identifier | String, Array of String | — | undefined : default to browser locale. |
# Variables
You can use these variables to customize this component.
Name | Description | Default |
---|---|---|
$rate-color | The rate color | $grey-lighter |
$rate-color-active | The rate for color when active | darken($warning, 5%) |
$rate-spaced | The rate spaced of between only icon | 0.25rem |
$rate-text-spaced | The rate spaced of between text and icon | 0.35rem |
This page is open source. Noticed a typo or something's unclear?