Skip to content
Calm motion: animations on this site only fade, with no movement

Rating ​

Star rating on native radios

A score out of a few: for someone to give one, or to show one. Stars are a coarse signal. For anything that needs a reason, pair them with a comment field.

Basic
Episode rating
Favourite
Rating
3 / 5 · click the current star to clear
  • Native radios: arrow keys choose. Clicking the chosen star again clears it.
  • readonly shows a score as one image named "Rating: 4 of 5". It is not a disabled control, so it is not read as dimmed.
  • name submits the value with a form. label names the group. icon changes the glyph.

Usage ​

ts
import { BlessRating } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
maxnumber5
namestring—
labelstring"Rating"
readonlyboolean—
disabledboolean—
size"md" | "sm" | "lg""md"
iconstring"★"glyph for each step
modelValuenumber0

Events

NamePayloadDescription
update:modelValue[value: number]

Released under the MIT License. Character names and artwork belong to their owners.