BlogPlaygroundOne

VRating API


Props
name
type
default
string
undefined

The applied color when the component is in an active state.

boolean
false

Allows for the component to be cleared by clicking on the current value.

string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

'default' | 'comfortable' | 'compact'
'default'

Adjusts the vertical height used by the component.

boolean
false

Removes the ability to click or target the component.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
'$ratingEmpty'

The icon displayed when empty.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
'$ratingFull'

The icon displayed when full.

boolean
false

Allows the selection of half increments.

boolean
false

Provides visual feedback when hovering over icons.

string
'$vuetify.rating.ariaLabel.item'

The aria-label used for each item.

string
'top'

Position of item labels. Accepts ‘top’ and ‘bottom’.

string[]
undefined

Array of labels to display next to each item…

string | number
5

The amount of items to show.

string | number
0

The v-model value of the component. If component supports the multiple prop, this defaults to an empty array.

string
undefined

Sets the component’s name attribute.

boolean
false

Removes all hover effects and pointer events.

boolean
false

Applies the v-ripple directive.

string | number
'default'

Sets the height and width of the component. Default unit is px. Can also use the following predefined sizes: x-small, small, default, large, and x-large.

string | (new () => any) | FunctionalComponent
'div'

Specify a custom tag used on the root element.

string
undefined

Specify a theme for this component and all of its children.

Events
name
type
[string | number]

Event that is emitted when the component’s model changes.

Slots
{ value: number index: number isFilled: boolean isHovered: boolean icon: | string | (string | [string, number])[] | (new () => any) | FunctionalComponent color: string props: Record<string, unknown> rating: number }
{ value: number; index: number; label: string }

The slot for each item.

The slot for each item label.

SASS Variables