Skip to main content

Rating

info

For more details about Vuetify’s usage of Rating component, click Rating page.
For more prop explanations, click Vuetify Rating API page.

Props

AttributeDescriptionTypeDefault
backgroundColorThe color used for empty iconsstringundefined
colorApplies specified color to the controlstringundefined
classAllows custom properties to take effect.stringundefined
clearableAllows for the component to be cleared. Triggers when the icon containing the current value is clicked.booleanfalse
closeDelayMilliseconds to wait before closing component.number | String0
darkApplies the dark theme variant to the component.booleanfalse
denseIcons have a smaller size.booleanfalse
emptyIconThe icon displayed when empty .String'$ratingEmpty'
fullIconThe icon displayed when full.String'$ratingFull'
halfIconThe icon displayed when half (requires half-increments prop)String'$ratingHalf'
halfIncrementsAllows the selection of half incrementsbooleanfalse
hoverProvides visual feedback when hovering over icons.booleanfalse
largeMakes the component large.booleanfalse
lengthThe amount of ratings to shownumber | string5
openDelayMilliseconds to wait before opening component.number | String0
sizeSets the height and width of the component.number | Stringundefined
smallMakes the component small.booleanfalse
rippleApplies the ripple directive.boolean | objecttrue
tabindexAllows component to give and receive focus.numberundefined
xSmallMakes the component extra small.booleanfalse
xLargeMakes the component extra large.booleanfalse
valueThe rating value.number0
visibleVisibility of Rating component.booleantrue

Events

AttributeDescription
inputEmits the rating number when this value changes

image

Samples Qjson

Rating