Usage
TheVRating component is used to gather user feedback through a star rating interface.
Custom Length
Change the number of rating items:Half Increments
Allow half-star ratings:Custom Icons
Use custom icons for empty and filled states:Hover Effect
Show preview on hover:Item Labels
Add labels to rating items:Size and Density
Adjust the size:Props
The v-model value of the component
The number of rating items to display
The icon to display for empty rating items
The icon to display for filled rating items
Allows half-star rating values
Shows a hover preview of the rating
Clicking the current rating value will reset it to 0
Applies specified color to the control
The color used for filled/active rating items
Removes the ability to click or change the rating
Makes the rating read-only
Applies the ripple directive
Sets the size of the rating icons
Adjusts the vertical spacing within the component
Array of labels to display above or below each rating item
Position of the item labels relative to the rating icons
Aria label template for rating items
Sets the name attribute on the internal input elements
Slots
Slot to customize individual rating item rendering
Slot to customize item label content
Events
Emitted when the rating value changes
The rating component supports keyboard navigation using arrow keys to increment or decrement the rating value.