Skip to content

StarRating

Star rating component for collecting user ratings with customizable count, color, and size.

Basic Usage

vue

<TStarRating v-model="rating" />

Custom Count & Size

vue

<TStarRating v-model="rating" :count="8" :size="32" />

Read-only

API

Props

PropTypeDefaultDescription
model-valuenumber0Current rating value
countnumber5Total star count
sizenumber24Star size (px)
colorstringStar color
readonlybooleanfalseDisable interaction
halfbooleanfalseAllow half-star ratings

Emits

EventParametersDescription
update:model-valuevalue: numberRating changed
changevalue: numberRating confirmed